X_1:=5;
X_2:=10;
X_3:=10;
X_4:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
X_5:=MOD(FROMOPEN,X_4);
X_6:=IF(X_5<0.5,X_4,X_5);
Vvol:IF(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VOL*(X_4+3)/(X_6+3),DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VVOL,0,(-1),(-1)),NODRAW,COLORFFCC00;
VOLUME:VOL,NODRAW;
MAVOL1:MA(VOLUME,X_1),COLOR99EEEE;
MAVOL2:MA(VOLUME,X_2),COLORFFCC00;
量趋势:EMA(MAVOL2,X_3),COLORRED,LINETHICK3;
IF(量趋势>REF(量趋势,1),量趋势,DRAWNULL),COLORRED,LINETHICK3;
IF(量趋势