{成交量}
成交量:vol,VOLSTICK;
{预计量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFFFF00;}
VAR1:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
换手率:HSL,COLORWHITE,NODRAW;
累计10日换手:SUM(换手率,10),NODRAW;
{绿色柱子}
STICKLINE(VOL>0,VOL,0,3,0),COLOR005500;
{红色柱子}
STICKLINE(买盘>0,0,买盘,3,0),COLOR0000BB;
五周期量:MA(VOL,5),COLORWHITE,LINETHICK1;
十周期量:MA(VOL,10),COLORFFFF00,LINETHICK1;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
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);
STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,OBV3,0.1,0),COLORYELLOW;