大智慧VOL虚拟成交量公式
INPUT:M1(5,2,500),M2(10,2,500),M3(60,2,500);
TOTAL:=IF(DATATYPE=4,5,IF(DATATYPE=5,15,IF(DATATYPE=6,30,IF(DATATYPE=7,60,IF(DATATYPE=8,240,1)))));
MTIME:=MOD(TRADETIME(0),TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
虚成交量:IF(BARSTATUS=2,VOL*TOTAL/CTIME,0),POINTDOT;
STICKLINE(BARSTATUS=2,虚成交量,VOL,7.5,-1),DOTLINE,COLORWHITE;
实成交量:VOL,VOLSTICK;
MA1:MA(VOL,M1),COLORYELLOW;
MA2:MA(VOL,M2),COLORGREEN;
MA3:MA(VOL,M3),COLORBLUE;