VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR2:=EMA(VAR1,9);
VAR3:=2*(VAR1-VAR2);
VAR4:=REF(VAR3,1)<REF(VAR3,2) AND REF(VAR3,2)<REF(VAR3,3);
VAR5:=VAR4 AND REF(VAR3,3)<REF(VAR3,4);
VAR6:=VAR3>=0 AND COUNT(VAR3>REF(VAR3,1),1)=1;
VAR7:=VAR5 AND VAR6 AND EMA(CLOSE,13)>REF(EMA(CLOSE,13),1);
VAR8:=VAR5 AND VAR6 AND ABS((VAR1-VAR2)/CLOSE)<0.018;
VAR9:=VAR5 AND VAR6 AND VAR3<0.10;
XG:VAR8 OR VAR9 OR VAR7;