1.通达信虚拟全周期成交量如何编写
通达信虚拟全周期成交量如何编写
LZL:=CEILING(1+.*PERIOD-.*PERIOD*PERIOD+.*PERIOD*PERIOD*PERIOD-9.*PERIOD*PERIOD*PERIOD*PERIOD+0.*PERIOD*PERIOD*PERIOD*PERIOD*PERIOD-0.5);
XX:=FROMOPEN-INTPART(FROMOPEN/LZL)*LZL;
LZT:=LZL*((XX-1)*0.4/(LZL-1)+0.6)/XX;
V1VOL:IF(CURRBARSCOUNT=1 AND PERIOD<6,通达视频分销源码VOL*LZT,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD<6,V1VOL,0,-1,-1),COLORC0C0;
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,M1);
MAVOL2:MA(VOLUME,M2);
MAVOL3:MA(VOLUME,M3);
MAVOL4:MA(VOLUME,M4);
MAVOL5:MA(VOLUME,M5);
MAVOL6:MA(VOLUME,M6);
MAVOL7:MA(VOLUME,M7);