ma5:=MA(C,5);
VAR1:=ema(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);
X1:=VAR1<REF(VAR1,1);
X2:=VAR1>80;
X3:=VAR1<20;
A:=VAR1>13 AND VAR1<33 AND NOT(X1) AND NOT(X2) AND NOT(X3);
crOSS(A>REF(A,1),0.5);
ma5:=MA(C,5);
VAR1:=ema(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);
X1:=VAR1<REF(VAR1,1);
X2:=VAR1>80;
X3:=VAR1<20;
A:=VAR1>13 AND VAR1<33 AND NOT(X1) AND NOT(X2) AND NOT(X3);
crOSS(A>REF(A,1),0.5);