A_1:=REF(CLOSE,1);

A_2:=EMA(HHV(HIGH,1),8);

A_3:=EMA(CLOSE,8);

A_4:=A_3<REF(A_3,1) AND CLOSE<A_3;

A_5:=IF(A_2<REF(A_2,1) OR A_4,1,0);

A_6:=SMA(MAX(CLOSE-A_1,0),2,1)/SMA(ABS(CLOSE-A_1),2,1)*100;

A_7:=45;

A_8:=20;

A_9:=A_6<A_7 AND REF(A_6,1)>A_7;

A_10:=A_6<A_8 AND REF(A_6,1)>A_8;

XG:=(COUNT(A_5=1,4)=3 AND A_5=0 AND OPEN<CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.065)*10>=10 OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.065 AND (REF(A_10,1) OR REF(A_9,1))),COLORYELLOW;

DRAWICON(XG,H*999,18);