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);
VAMO:IF((CURRBARSCOUNT=1 AND DYNAINFO(8) 1),AMOUNT/100000000.0*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8) 1),VAMO,0,-1,-1),COLOR00C0C0;
今量:AMOUNT/100000000.0,VOLSTICK;
五日量:MA(今量,5),COLORCYAN,LINETHICK2;
二十量:=MA(今量,20),COLORMAGENTA,LINETHICK2;
STICKLINE(今量 五日量,0,今量,3,0),COLORRED;
STICKLINE(今量 五日量,0,今量,3,0),COLORGREEN;