VAR1:=EMA(C,2);
VAR2:=EMA(SLOPE(C,9)*20+C,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);
VAR28:=(VAR7-VAR8)*2;
XG:VAR6-REF(VAR6,1)>30 AND CLOSE/REF(CLOSE,1)>1.043 AND VAR28>0 AND VAR28>0;