{资金量能副图}
REFLINE:0;
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,3);
MACD:=2*(DIFF-DEA);
X1:=EMA(DIFF,5)*5;
X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
X3:IF(X2 0,X2,0),POINTDOT,COLORRED;
X4:IF(X2 0,X2,0),POINTDOT,COLORGREEN;
{红色}
STICKLINE(X2 0,0,X2,2.4,0),COLOR000099;
STICKLINE(X2 0,0,X2,2.0,0),COLOR0000AA;
STICKLINE(X2 0,0,X2,1.6,0),COLOR0000CC;
STICKLINE(X2 0,0,X2,1.2,0),COLOR0000DD;
STICKLINE(X2 0,0,X2,0.8,0),COLOR0000EE;
STICKLINE(X2 0,0,X2,0.4,0),COLOR0000FF;
{青色}
STICKLINE(X2 0 AND X2 X1 AND X2 REF(X2,1),0,X2,2.4,0),COLORFFBF00;
{绿色}
STICKLINE(X2 0,0,X2,2.4,0),COLOR007700;
STICKLINE(X2 0,0,X2,2.0,0),COLOR009900;
STICKLINE(X2 0,0,X2,1.6,0),COLOR00CC00;
STICKLINE(X2 0,0,X2,1.2,0),COLOR00DD00;
STICKLINE(X2 0,0,X2,0.8,0),COLOR00FF00;
STICKLINE(X2 0,0,X2,0.4,0),COLOR00FF00;
{紫色}
STICKLINE(X2 0 AND X2 X1 AND X2 REF(X2,1),0,X2,2.4,0),COLOR990099;
STICKLINE(X2 0 AND X2 X1 AND X2 REF(X2,1),0,X2,2.0,0),COLORAA00AA;
STICKLINE(X2 0 AND X2 X1 AND X2 REF(X2,1),0,X2,1.6,0),COLORCC00CC;
STICKLINE(X2 0 AND X2 X1 AND X2 REF(X2,1),0,X2,1.2,0),COLORDD00DD;
STICKLINE(X2 0 AND X2 X1 AND X2 REF(X2,1),0,X2,0.8,0),COLOREE00EE;
STICKLINE(X2 0 AND X2 X1 AND X2 REF(X2,1),0,X2,0.4,0),COLORFF00FF;
资金动能2:X2,COLORRED,LINETHICK2;
资金动能1:X1,COLORYELLOW,LINETHICK2;
DRAWICON((CROSS(资金动能2,资金动能1) AND 资金动能1 -0.25),资金动能1,1);
资金买点:CROSS(资金动能2,资金动能1) AND 资金动能1 -0.25,LINETHICK2,COLOR0088FF;DRAWTEXT_FIX(C O,0.01,0.01,0,' WWW.GSZX.COM.CN'),COLORWHITE;
DRAWICON((CROSS(资金动能1,资金动能2) AND 资金动能2 0.25),资金动能2,2);
VA:=IF(CLOSE REF(CLOSE,1),VOL,-VOL);
OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2 0,OBV2,0),3);
MAC3:=MA(C,3);
SHORT:=12;
LONG:=26;
MID:=9;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),NODRAW;
STICKLINE(OBV3 REF(OBV3,1) AND MAC3 REF(MAC3,1),0,X2,0.4,0),COLOR00D8FF;
资金量能:OBV3 REF(OBV3,1) AND MAC3 REF(MAC3,1),COLORRED,NODRAW;