{M5:MA(C,5),COLORFFFFFF;
M10:MA(C,10),COLOR00FFFF;
M20:MA(C,18),COLORFF00FF;
M30:MA(C,30),COLOR00FF00;
M60:MA(C,60),COLOR0000FF;
M120:MA(C,120),COLORFFFF00;
M240:MA(C,240),COLORFF8080;}
STICKLINE(C>O AND L>REF(H,1),CLOSE,OPEN,7,1),COLORFF00FF;
STICKLINE(C<O AND L>REF(H,1),CLOSE,OPEN,7,0),COLOR00FF00;
STICKLINE(C>O AND H<REF(L,1),CLOSE,OPEN,7,1),COLORFF00FF;
STICKLINE(C<O AND H<REF(L,1),CLOSE,OPEN,7,0),COLOR00FF00;
VARA01:=BArslAST(L>REF(H,1));
VARA02:=BARSLAST(H<REF(L,1));
STICKLINE(VARA01>0,REF(L,VARA01),REF(L,VARA01),5,0),COLORFF00FF;
STICKLINE(VARA01>0,REF(H,VARA01+1),REF(H,VARA01+1),5,0),COLORFF00FF;
STICKLINE(VARA02>0,REF(H,VARA02),REF(H,VARA02),5,0),COLOR00FF00;
STICKLINE(VARA02>0,REF(L,VARA02+1),REF(L,VARA02+1),5,0),COLOR00FF00;