VAR1:=IF((REF(CLOSE,3)-REF(CLOSE,1))/CLOSE*100>6,1,0);
VAR2:=IF(CLOSE>REF(CLOSE,1)*1.03,1,0);
VAR3:=IF(REF((HIGH-OPEN)/CLOSE*100<2,1),1,0);
VAR4:=IF(REF(CLOSE<OPEN,2) AND REF(CLOSE<OPEN,1),1,0);
VAR5:=IF((HIGH-CLOSE)/CLOSE*100<2 AND HIGH>REF(HIGH,1),1,0);
VAR6:=IF((REF(OPEN,1)-REF(CLOSE,1))/CLOSE*100>1,1,0);
VAR7:=IF((REF(OPEN,2)-REF(CLOSE,2))/CLOSE*100<9,1,0);
VAR8:=(EMA(CLOSE,12)-EMA(CLOSE,26)-EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9))*2;
VAR9:=VAR8>REF(VAR8,1) AND VAR8<0;{}
VAR10:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR11:=CROSS(3*SMA(VAR10,3,1)-2*SMA(SMA(VAR10,3,1),3,1),MA(3*SMA(VAR10,3,1)-2*SMA(SMA(VAR10,3,1),3,1),2));
XG:IF(VAR11 AND VAR1 AND VAR2 AND VAR3 AND VAR4 AND VAR5 AND VAR6 AND VAR7 AND VAR9 AND CLOSE>OPEN,1,0);