通达信VOL成交量副图指标公式源码

通达信VOL成交量副图指标公式源码:

{指标参数:
M1 2,1000,5
M2 2,1000,30
M3 2,1000,60

}

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 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,M1),LINETHICK2;
MAVOL2:MA(VOLUME,M2),LINETHICK2;
MAVOL3:MA(VOLUME,M3),LINETHICK2;

通达信VOL成交量副图指标公式源码:

通达信VOL成交量