通达信成交量指标,能显示地域行业板块、收益、权益,预测成交量、换手率。
源码
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME 0.5,TOTAL,MTIME);
VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,5);
MAVOL2:MA(VOLUME,10);
预量:ROUND(IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,VOL)),COLORYELLOW,LINETHICK;
预额(亿):IF(CURRBARSCOUNT=1,AMOUNT*TOTAL/CTIME/100000000,AMOUNT/100000000),COLOR0000FF,LINETHICK;
预换手:预量/CAPITAL*100,COLORYELLOW;
DRAWTEXT_FIX(C 0,0.01,0.03,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(C 0,0.065,0.03,0,HYBLOCK),COLORCYAN;
DRAWTEXT_FIX(C 0,0.12,0.03,0,'收益 :'),COLORYELLOW;
DRAWNUMBER_FIX(C 0,0.15,0.03,0,FINANCE(38)),COLORYELLOW;
DRAWTEXT_FIX(C 0,0.19,0.03,0,'权益 :'),COLORYELLOW;
DRAWNUMBER_FIX(C 0,0.22,0.03,0,FINANCE(34)),COLORYELLOW;
DRAWTEXT_FIX(C 0,0.26,0.03,0,'A股 :'),COLORCYAN;
DRAWNUMBER_FIX(C 0,0.29,0.03,0,CAPITAL/1000000),COLORCYAN;
DRAWTEXT_FIX(C 0,0.35,0.03,0,'总股本 :'),COLORCYAN;
DRAWNUMBER_FIX(C 0,0.39,0.03,0,TOTALCAPITAL/1000000),COLORCYAN;