VAR1:=EMA(CLOSE,2);
VAR2:=EMA(SLOPE(CLOSE,9)*20+CLOSE,37);
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1);
VAR6:=3*VAR4-2*VAR5;
VAR7:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR8:=EMA(VAR7,9);
VAR9:=(VAR7-VAR8)*2;
XG:VAR6-REF(VAR6,1)>30 AND CLOSE/REF(CLOSE,1)>1.043 AND VAR9>0 AND VAR9>0;