VM:=11;N:=11;TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));MTIME:=MOD(FROMOPEN,TOTAL);CTIME:=IF(MTIME<0 TOTAL,MTIME);V:IF(CURRBARSCOUNT=1,*TOTAL/CTIME,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT SETCODE=0 SETCODE=1),VVOL,0,-1,-1),COLOR00C0C0;VOLUME:VOL,VOLSTICK;V5: MA(V,VM);T:=ALIGNRIGHT(MOD(CURRBARSCOUNT,N));HH: HHV(V5,N);STICKLINE(T=1,0,HH,0,0),COLORYELLOW;STICKLINE(T REFX(HH,BARSNEXT(T=1)),0,0),COLORYELLOW;DRAWLINE(T REFX(HH,BARSNEXT(T=1)),T HH,0),COLOR