X_1:=crOSS(SMA(CLOSE,2,1),SMA(LOW,5,1));
X_2:=SMA(HIGH,21,2)*1.05*1.05;
X_3:=IF(X_1,X_2,SMA(LOW,5,1));
X_4:=CROSS(SMA(CLOSE,2,1),SMA(HIGH,21,2)*1.05);
X_5:=IF(X_4,SMA(HIGH,21,2)*1.05*1.1,SMA(LOW,21,2)*0.95);
X_6:=X_3>SMA(LOW,5,1) AND CROSS(CLOSE,REF(MA(CLOSE,13),13/2+1)) AND vol>0;
X_7:=REF(HIGH/OPEN<1.02,1) AND REF(CLOSE<OPEN,1);
XG:X_5>SMA(LOW,21,2)*0.95 OR X_6 AND X_7;