M1:=5;
M2:=10;
M3:=20;
M4:=60;
VAR2:=IF(PERIOD=5,240/240,IF(PERIOD=4,240/60,IF(PERIOD=3,240/30,IF(PERIOD=2,240/15,IF(PERIOD=1,240/5
,DRAWNULL)))));
Vvol:IF(CURRBARSCOUNT=1,
IF(PERIOD>0 AND PERIOD<6,MIN(CAPITAL,DYNAINFO(8)/FROMOPEN*240/VAR2),
IF(PERIOD=6,V*5/WEEkdAY,IF(PERIOD=7,V*31/DAY,DRAWNULL))),VOL),NODRAW,COLORC0C0C0;
STICKLINE(CURRBARSCOUNT=1,VVOL,0,-1,-1),COLORC0C0C0;
VOLUME:VOL,VOLSTICK,COLOR3232FF;
STICKLINE(COUNT(C>0,0)=1 AND C>=O OR C>=REF(C,1),0,V,-1,1),COLOR3232FF;
STICKLINE(COUNT(C>0,0)=1 AND C
MAVOL2:MA(VVOL,M2),COLORYELLOW;
MAVOL3:MA(VVOL,M3),COLORMAGENTA;
MAVOL4:MA(VVOL,M4),COLORGREEN;
VHSL:100*VVOL/CAPITAL,COLORBLUE,NODRAW;
VAMT:VVOL/V*AMOUNT/10000,COLORCYAN,NODRAW;