REFLINE:0;
DIFF:=EMA(C,3)-EMA(C,8);
DEA:=EMA(DIFF,5);
MACD := 2*(DIFF-DEA);
资金动能1:=EMA(DIFF,5)*5;
资金动能2:=((EMA(C,3)-EMA(C,8)))*5;
资金动能3:IF(资金动能2>0,资金动能2,0),POINTDOT,COLORRED;
资金动能4:IF(资金动能2< 0,资金动能2,0),POINTDOT,COLORGREEN;
STICKLINE(资金动能2>0,0,资金动能2,2.8,0),COLORRED;
STICKLINE(资金动能2>0,0,资金动能2,2.8,0),COLOR000088;
STICKLINE(资金动能2>0,0,资金动能2,2.6,0),COLOR000099;
STICKLINE(资金动能2>0,0,资金动能2,2.4,0),COLOR0000AA;
STICKLINE(资金动能2>0,0,资金动能2,2.2,0),COLOR0000BB;
STICKLINE(资金动能2>0,0,资金动能2,2,0),COLOR0000CC;
STICKLINE(资金动能2>0,0,资金动能2,1.8,0),COLOR0000DD;
STICKLINE(资金动能2>0,0,资金动能2,1.5,0),COLOR0000EE;
STICKLINE(资金动能2>0,0,资金动能2,1.0,0),COLOR0000FF;
STICKLINE(资金动能2>0,0,资金动能2,0.0,0),COLOR0000FF;
STICKLINE(资金动能2< 0,0,资金动能2,2.8,0),COLORGREEN;
STICKLINE(资金动能2< 0,0,资金动能2,2.8,0),COLOR007700;
STICKLINE(资金动能2< 0,0,资金动能2,2.6,0),COLOR008800;
STICKLINE(资金动能2< 0,0,资金动能2,2.6,0),COLOR009900;
STICKLINE(资金动能2< 0,0,资金动能2,2.4,0),COLOR00BB00;
STICKLINE(资金动能2< 0,0,资金动能2,2.0,0),COLOR00CC00;
STICKLINE(资金动能2< 0,0,资金动能2,1.8,0),COLOR00DD00;
STICKLINE(资金动能2< 0,0,资金动能2,1.5,0),COLOR00EE00;
STICKLINE(资金动能2< 0,0,资金动能2,1,0),COLOR00FF00;
STICKLINE(资金动能2< 0,0,资金动能2,0,0),,COLOR00FF00;
资金动能A:资金动能2,COLORYELLOW,LINETHICK2;
资金动能B:资金动能1,COLORFFFF00,LINETHICK2;
DRAWICON((CROSS(资金动能A,资金动能B) AND 资金动能B< -0.25),资金动能B,1);
DRAWICON((CROSS(资金动能B,资金动能A) AND 资金动能A>0.25),资金动能A,2);