M1:=5;
M2:=10;
N:=10;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1))))),NODRAW;
MTIME:=MOD(FROMOPEN,TOTAL),NODRAW;
CTIME:=IF(MTIME<0.5,TOTAL,MTIME),NODRAW;
Vvol:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0,NODRAW;
VOLUME:VOL,VOLSTICK,NODRAW;
MAVOL1:MA(VOLUME,M1),COLOR99EEEE;
MAVOL2:MA(VOLUME,M2),COLORFFCC00,LINETHICK1;
量趋势:EMA(MAVOL2,N),COLORRED,LINETHICK3;
IF(量趋势>REF(量趋势,1),量趋势,DRAWNULL),COLORRED,LINETHICK3;
IF(量趋势