X_1:=1;
X_2:=MA(CLOSE,13);
X_3:=100-Abs((CLOSE-X_2)/X_2*100);
X_4:=LLV(LOW,75);
X_5:=HHV(HIGH,75);
X_6:=(X_5-X_4)/100;
X_7:=SMA((CLOSE-X_4)/X_6,20,1);
X_8:=SMA((OPEN-X_4)/X_6,20,1);
X_9:=3*X_7-2*SMA(X_7,15,1);
X_10:=3*X_8-2*SMA(X_8,15,1);
X_11:=(100-X_9)*X_1;
X_12:=X_11>X_3;
X_13:=LOW*0.9;
X_14:=EMA(X_13,30);
X_15:=CLOSE-REF(CLOSE,1);
X_16:=MAX(X_15,0);
X_17:=ABS(X_15);
X_18:=SMA(X_16,7,1)/SMA(X_17,7,1)*100;
X_19:=SMA(X_16,13,1)/SMA(X_17,13,1)*100;
X_20:=BARSCOUNT(CLOSE);
X_21:=SMA(MAX(X_15,0),6,1)/SMA(ABS(X_15),6,1)*100;
X_22:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
X_23:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
X_24:=SMA((SMA(X_23,4,1)-50)*2,3,1);
X_25:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
X_26:=SMA(X_25,4,1);
X_27:=SMA(X_26,3,1);
X_28:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
X_29:=X_21<=25 AND X_22<(-95) AND X_28>20 AND X_24<(-30) AND X_27<30 AND X_14-CLOSE>=(-0.25) AND X_18<22 AND X_19<28 AND X_20>50;
XG:X_29;