X_2:=1;
X_3:=1;
X_17:=REF(LOW,1)*0.9;
X_18:=LOW*0.9;
X_19:=(X_18*vol+X_17*X_3*(CAPITAL-VOL))/CAPITAL;
X_20:=EMA(X_19*X_2,30);
X_21:=CLOSE-REF(CLOSE,1);
X_22:=MAX(X_21,0);
X_23:=Abs(X_21);
X_24:=SMA(X_22,7,1)/SMA(X_23,7,1)*100;
X_25:=SMA(X_22,13,1)/SMA(X_23,13,1)*100;
X_26:=BARSCOUNT(CLOSE);
X_27:=SMA(MAX(X_21,0),6,1)/SMA(ABS(X_21),6,1)*100;
X_28:=(-200)*(HHV(HIGH,60)*X_2-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
X_29:=(CLOSE-LLV(LOW,15)*X_2)/(HHV(HIGH,15)-LLV(LOW,15))*100;
X_30:=SMA((SMA(X_29,4,1)-50)*2,3,1);
X_31:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
X_32:=SMA(X_31,4,1);
X_33:=SMA(X_32*X_3,3,1);
X_34:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
X_35:=X_27<=25 AND X_3 AND X_28<(-95) AND X_34>20 AND X_30<(-30) AND X_33<30 AND X_20-CLOSE>=(-0.25) AND X_24<22 AND X_25<28 AND X_26>50;
XG:crOSS(X_35,0.5) AND COUNT(X_35=1,10)=1;