VAR1:=EMA(CLOSE,6)-EMA(CLOSE,13);
VAR2:=EMA(VAR1,5);
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) AND CAPITAL/100<20000;
VAR6:=VAR3>=0 AND COUNT(VAR3>REF(VAR3,1),1)=1;
VAR7:=VAR5 AND VAR6 AND EMA(C,13)>REF(EMA(C,13),1);
VAR8:=VAR5 AND VAR6 AND VAR3<0.10;
VAR9:=VAR5 AND VAR6 AND Abs((VAR1-VAR2)/C)<0.018;
XG:VAR7 OR VAR9 OR VAR8;