A13:=EMA(CLOSE,55);
A14:=MA(CLOSE,75);
A15:=EMA(A14,3);
A16:=EMA(A15,3);
A17:=(HIGH + LOW) / 5;
A18:=(MA(A17,4)) - (MA(A17,34));
A19:=CROSS(A18,0);
A20:=CROSS(0,A18);
A21:=BARSLAST(A19);
A22:=BARSLAST(A20);
A23:=REF(A19,1);
A24:=REF(A20,1);
A25:=BARSLAST(A23);
A26:=BARSLAST(A24);
A27:=IF((A25 < A26),(REF((HHV(HIGH,2)),A25)),(REF((LLV(LOW,2)),A26)));
A28:=(((REF(CLOSE,1)) <= (REF(A27,1))) AND (CLOSE > A27)) AND (A21 < A22);
A29:=(((REF(CLOSE,1)) >= (REF(A27,1))) AND (CLOSE < A27)) AND (A22 < A21);
A30:=A28 AND ((COUNT(A28,A21)) = 1);{}
A31:=A29 AND ((COUNT(A29,A22)) = 1);
A32:=A30 AND ((REF(BARSLAST(A31),1)) < (REF(BARSLAST(A30),1)));
A33:=A31 AND ((REF(BARSLAST(A31),1)) > (REF(BARSLAST(A30),1)));
{DRAWTEXT(A32,SMA2*0.99,'←═≒∝'),COLORYELLOW;}
W18:EXIST(A32,1) AND
REF(C,1)/REF(C,2)>1 AND REF(C,1)/REF(C,2)<1.02 AND C/REF(C,1)>1.02 AND C/REF(C,1)<1.03 AND REF(C,2)/REF(C,3)<1.015 AND REF(C,2)/REF(C,3)>0.985 AND REF(C,3)/REF(C,4)<1.015 AND REF(C,3)/REF(C,4)>0.985 AND REF(C,4)/REF(C,5)<1.015 AND REF(C,4)/REF(C,5)>0.985 AND REF(C,5)/REF(C,6)<1.015 AND REF(C,5)/REF(C,6)>0.985;