MA18:MA(CLOSE,18),COLORYELLOW,LINETHICK2;
AA:=MA18>=REF(MA18,1);
BB:=CLOSE>MA18*1.004;
DRAWICON(AA AND BB,MA18,1);
CC:=MA18<=REF(MA18,1);
DD:=COUNT(CLOSE<=MA18*0.996,2)=2;
DRAWICON(CC AND DD,MA18,2);
MA18:MA(CLOSE,18),COLORYELLOW,LINETHICK2;
AA:=MA18>=REF(MA18,1);
BB:=CLOSE>MA18*1.004;
DRAWICON(AA AND BB,MA18,1);
CC:=MA18<=REF(MA18,1);
DD:=COUNT(CLOSE<=MA18*0.996,2)=2;
DRAWICON(CC AND DD,MA18,2);