M5:MA(C,5) LINETHICK1;
A:=O/C*100 ;
TJ:=C<O AND C>=M5 AND A>100.2;
T:=BARSLAST(TJ);
T1:=REF(T,T+1)+1+T+1;
T2:=REF(T1,T+1)+T+1;
T3:=REF(T2,T+1)+T+1;
DRAWLINE(CURRBARSCOUNT=CONST(T)+1,O,ISLASTBAR,REF(O,T),0),COLORYELLOW,DOTLINE;
DRAWLINE(CURRBARSCOUNT=CONST(T1),O,ISLASTBAR,REF(O,CONST(T1)-1),0),COLORGRAY,DOTLINE;
DRAWLINE(CURRBARSCOUNT=CONST(T2),O,ISLASTBAR,REF(O,CONST(T2)-1),0),COLORGRAY,DOTLINE;
DRAWLINE(CURRBARSCOUNT=CONST(T3),O,ISLASTBAR,REF(O,CONST(T3)-1),0),COLORGRAY,DOTLINE; |