VAR1:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);
X1:=VAR1
X2:=VAR1>80;
X3:=VAR1<13;
AA:=VAR1>13 AND VAR1<33 AND NOT(X1) AND NOT(X2) AND NOT(X3);
XG:crOSS(AA>REF(AA,1),0.5);
VAR1:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);
X1:=VAR1
X2:=VAR1>80;
X3:=VAR1<13;
AA:=VAR1>13 AND VAR1<33 AND NOT(X1) AND NOT(X2) AND NOT(X3);
XG:crOSS(AA>REF(AA,1),0.5);