N:=13;
TS:=BARSCOUNT(CLOSE)>=10;
MM:EMA((3*CLOSE+HIGH+LOW+OPEN)/6,20),COLORGRAY,LINETHICK1;
FL:HHV(MM,5),LINETHICK1,COLORYELLOW;
FS:MM-(FL-MM),LINETHICK1,COLORRED;
DRAWICON(FL=FS AND REF(FL,1)>REF(FS,1) AND TS ,L,42);
DRAWICON(FL>FS AND REF(FL,1)=REF(FS,1) AND TS ,H*1.008,43);
MD:=C<MA(C,N) AND REF(C,1)>REF(MA(C,N),1);
STICKLINE (MD,O,C,2,0),COLORGREEN;
ZT:=C/REF (C,1)>=1.095 AND C=H;
STICKLINE (ZT,O,C,2,0),COLORMAGENTA;