X_1:=REF(EVERY(MA(CLOSE,5)>REF(MA(CLOSE,5),1),3) AND EVERY(MA(CLOSE,10)>REF(MA(CLOSE,10),1),3) AND EVERY(MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20),3),1);
X_2:=REF(HIGH,2)/REF(CLOSE,3)>1.04 AND REF(OPEN,2)/REF(CLOSE,3)>1.02 AND NOT(REF(EVERY(CLOSE/REF(CLOSE,1)>1.098 AND OPEN>REF(CLOSE,1),3),2)) AND REF(OPEN,1)<=REF(CLOSE,2) AND OPEN/REF(OPEN,1)<1.02 AND OPEN<REF(OPEN,1) AND REF(OPEN,2)/REF(LOW,2)<1.03 AND OPEN/REF(CLOSE,1)<1.04 AND NOT(REF(HIGH,1)/REF(OPEN,1)>1.005 AND REF(CLOSE,1)/REF(LOW,1)>1.025) AND REF(CLOSE,2)>REF(OPEN,2);
X_3:=X_2 OR (REF(HIGH,2)/REF(CLOSE,3)>1.045 AND NOT(REF(REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1) AND MA(CLOSE,5)<MA(CLOSE,10),5)) AND REF(CLOSE,2)/REF(OPEN,2)>1.003 AND REF(CLOSE,1)<REF(OPEN,2) AND REF(CLOSE,2)/REF(OPEN,2)<1.02 AND REF(HIGH,2)/REF(CLOSE,2)>1.033 AND REF(CLOSE,2)>REF(OPEN,2) AND REF(OPEN,1)/REF(CLOSE,1)<1.05 AND REF(OPEN,2)/REF(LOW,2)<1.018 AND REF(OPEN,2)/REF(LOW,2)<1.02 AND REF(OPEN,2)/REF(CLOSE,3)>0.99);
X_4:=X_3 AND REF(CLOSE,1)/REF(OPEN,1)<0.995 AND REF(COUNT(CLOSE/REF(CLOSE,1)>1.098,7)>0,1) AND NOT(REF(COUNT(CLOSE>OPEN,10)>8,2)) AND REF(CLOSE,1)/REF(CLOSE,2)<0.995 AND REF(CLOSE,2)/REF(CLOSE,20)<2 AND REF(HIGH,1)/REF(OPEN,1)<1.05 AND CLOSE/REF(CLOSE,1)>1.022;
X_5:=REF(COUNT(CLOSE/REF(CLOSE,1)>1.098,3)>0,1) AND OPEN/LOW<1.06 AND NOT(REF(COUNT(CLOSE>OPEN,10)>8 AND COUNT(CLOSE<MA(CLOSE,5),10)>3,3)) AND OPEN/REF(CLOSE,1)<1.02 AND REF(CLOSE,1)/REF(OPEN,3)>0.975 AND REF(HIGH,2)/REF(LOW,1)>1.07 AND REF(CLOSE,1)/REF(CLOSE,2)<0.99 AND REF(CLOSE,1)/REF(OPEN,3)>0.95 AND REF(CLOSE,2)/REF(CLOSE,3)<0.98 AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(OPEN,2)/REF(CLOSE,3)>1.01 AND REF(CLOSE,2)>REF(OPEN,3) AND CLOSE/REF(CLOSE,1)>1.02;
X_6:=REF(HHV(HIGH,3),1)/REF(CLOSE,10)<1.3 AND REF(HHV(HIGH,2),1)/REF(LOW,1)>1.06 AND NOT(REF(HIGH,3)/REF(CLOSE,3)>1.05 AND REF(OPEN,2)/REF(LOW,2)>1.026) AND REF(OPEN,1)/REF(CLOSE,2)<1.005 AND REF(CLOSE,1)/REF(CLOSE,2)>0.925 AND REF(CLOSE,1)/REF(CLOSE,2)<0.995 AND REF(CLOSE,1)/REF(OPEN,1)<0.995 AND REF(CLOSE,2)/REF(OPEN,2)<1.025 AND REF(HIGH,2)/REF(CLOSE,2)>1.035 AND REF(CLOSE,1)/REF(CLOSE,2)<0.968 AND REF(CLOSE,2)>REF(OPEN,2) AND REF(OPEN,1)/REF(CLOSE,2)<0.988 AND CAPITAL<10000000 AND OPEN/REF(CLOSE,1)<1.04 AND CLOSE/REF(CLOSE,1)>1.03;
X_7:=X_4 OR X_5 OR X_6 AND X_1;
X_8:=NOT(REF(CLOSE,3)=REF(OPEN,3)) AND REF(CLOSE,1)/REF(OPEN,3)>0.96 AND REF(HHV(HIGH,3),1)/REF(LOW,1)>1.13 AND REF(HIGH,2)/REF(LOW,1)>1.11 AND REF(CLOSE,1)/REF(CLOSE,2)<0.995 AND REF(CLOSE,1)/REF(OPEN,1)<0.995 AND OPEN/REF(CLOSE,1)<1.0135 AND REF(CLOSE,1)/REF(OPEN,1)>0.93 AND OPEN/LOW<1.035 AND REF(CLOSE,1)/REF(CLOSE,2)>0.92 AND CLOSE/REF(CLOSE,1)>1.025;
X_9:=X_8 AND REF(MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND MA(CLOSE,10)>REF(MA(CLOSE,10),1) AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>REF(MA(CLOSE,20),1),1) AND NOT(REF(CLOSE,2)/REF(OPEN,2)<0.93 AND REF(CLOSE,2)/REF(HIGH,2)<0.9) AND REF(CLOSE,1)/REF(MAX(CLOSE,OPEN),3)<0.93 AND REF(CLOSE,2)/REF(CLOSE,3)>0.93 AND REF(CLOSE,2)/REF(CLOSE,12)<2 AND NOT(REF(OPEN,2)/REF(CLOSE,3)>1.03 AND REF(CLOSE,2)<REF(CLOSE,3)) AND REF(OPEN,1)/REF(CLOSE,2)<1.01;
X_10:=REF(CLOSE,2)/REF(CLOSE,3)>1.05 AND REF(OPEN,1)/REF(CLOSE,2)<0.98 AND OPEN/LOW<1.06 AND REF(CLOSE,1)/REF(OPEN,1)<0.98 AND REF(CLOSE,1)/REF(CLOSE,2)<0.94 AND REF(HIGH,2)/REF(CLOSE,2)>1.025 AND REF(CLOSE,2)/REF(OPEN,2)>1.03 AND OPEN/REF(CLOSE,1)<1.01 AND REF(EVERY(MA(CLOSE,5)>MA(CLOSE,25),7) AND EVERY(MA(CLOSE,10)>MA(CLOSE,25),7),1) AND CLOSE/REF(CLOSE,1)>1.02;
X_11:=X_7 OR X_9 OR X_10;
X_12:=BARSCOUNT(CLOSE)>80 AND REF(CLOSE,2)/REF(CLOSE,3)>0.96 AND NOT(REF(HIGH,2)>REF(MA(CLOSE,20)+2*STD(CLOSE,20),2) AND REF(CLOSE,2)<REF(MA(CLOSE,20)+2*STD(CLOSE,20),2) AND REF(EVERY(CLOSE<MA(CLOSE,20)+2*STD(CLOSE,20),5),2)) AND NOT(REF(HIGH,3)>REF(MA(CLOSE,20)+2*STD(CLOSE,20),3) AND REF(CLOSE,3)<REF(MA(CLOSE,20)+2*STD(CLOSE,20),3) AND REF(EVERY(CLOSE<MA(CLOSE,20)+2*STD(CLOSE,20),5),3)) AND REF(CLOSE,1)/REF(CLOSE,2)>0.905 AND NOT(REF(COUNT(HIGH>MA(CLOSE,250) AND HIGH/MA(CLOSE,250)<1.04,3)>0,1)) AND CLOSE/REF(CLOSE,1)>1.03;
X_13:=NOT(REF(EVERY(CLOSE>REF(CLOSE,1) AND CLOSE>OPEN,7),4)) AND REF(MA(CLOSE,10),1)>REF(MA(CLOSE,10),2) AND REF(MA(CLOSE,20),1)>REF(MA(CLOSE,20),2) AND NOT(REF(OPEN,2)/REF(CLOSE,2)>1.09 AND REF(VOL,2)>REF(HHV(VOL,100),3)) AND REF(MA(CLOSE,5),2)>REF(MA(CLOSE,5),3) AND REF(HHV(HIGH,3),2)/REF(LOW,1)>1.09 AND REF(CLOSE,1)/REF(CLOSE,2)<0.98 AND REF(MA(CLOSE,5),3)>REF(MA(CLOSE,5),4);
X_14:=REF(COUNT(CLOSE/REF(CLOSE,1)>1.098 AND CLOSE/OPEN>1.05,10)<4,1) AND REF(HIGH,2)/REF(MAX(CLOSE,OPEN),2)<1.095 AND REF(COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.098 AND OPEN/REF(CLOSE,1)>1.03 AND REF(CLOSE,1)/REF(CLOSE,5)>1.15 AND HIGH/OPEN<1.03 AND CLOSE/OPEN<0.93,10)<1,1) AND REF(COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.098 AND REF(OPEN,1)/REF(CLOSE,2)>1.005 AND OPEN=HIGH AND CLOSE/OPEN<0.96,10)<1,1);
X_15:=CLOSE>OPEN AND NOT(REF(OPEN,1)/REF(CLOSE,1)<1.005 AND OPEN>REF(OPEN,1)) AND NOT(REF(CLOSE,1)/REF(LOW,1)>1.02 AND OPEN/REF(CLOSE,1)>1.012) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(MA(CLOSE,5),1)/REF(MA(CLOSE,5),2)>1.0005 AND REF(CLOSE,1)/REF(CLOSE,4)<1.07 AND REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1) AND REF(CLOSE,1)/REF(OPEN,1)>0.97 AND REF(CLOSE,1)/REF(CLOSE,2)<0.979 AND OPEN/REF(CLOSE,1)<1.06;
X_16:=X_12 AND X_14 AND X_13 AND X_15;
X_17:=NOT(REF(EVERY(CLOSE/REF(CLOSE,1)>1.01 AND CLOSE>OPEN,4),3)) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(OPEN,1)<REF(CLOSE,2) AND REF(HIGH,2)/REF(LOW,1)>1.08 AND REF(CLOSE,1)/REF(LOW,1)>1.003 AND REF(CLOSE,1)/REF(CLOSE,2)>0.92;
X_18:=REF(HIGH,2)/REF(CLOSE,2)>1.015 AND (REF(HIGH,2)-REF(CLOSE,2))/(REF(CLOSE,2)-REF(OPEN,2))>1.3 AND REF(OPEN,1)=REF(HIGH,1) AND REF(CLOSE,1)/REF(CLOSE,2)<0.96 AND CLOSE/REF(CLOSE,1)>1.03;
X_19:=X_17 AND X_18;
X_20:=REF(HIGH,2)/REF(LOW,1)>1.07 AND REF(CLOSE,1)/REF(MA(CLOSE,20),1)<1.07 AND (REF(HIGH,2)/REF(CLOSE,2)>1.03 AND REF(OPEN,1)/REF(CLOSE,2)<0.98 AND REF(CLOSE,2)>REF(CLOSE,3) OR REF(CLOSE,2)<REF(CLOSE,3)) AND REF(COUNT(COUNT(CLOSE/REF(CLOSE,1)>1.098,3)>1,5)=0,1) AND REF(MA(CLOSE,20),1)>REF(MA(CLOSE,20),2) AND REF(CLOSE,1)>REF(REF(LOW,BARSLAST(CLOSE/REF(CLOSE,1)>1.098)),1) AND REF(CLOSE,1)/REF(CLOSE,2)<0.97 AND OPEN/REF(CLOSE,1)<1.006 AND REF(CLOSE,3)/REF(CLOSE,4)>1.098 AND CLOSE/REF(CLOSE,1)>1.03;
X_21:=X_16 OR X_19 OR X_20;
X_22:=NOT(NAMELIKE(1) OR NAMELIKE(2));
X_23:=X_21 AND X_22 AND REF(COUNT(CLOSE/REF(CLOSE,2)>1.145 AND REF(EVERY(MA(CLOSE,5)>MA(CLOSE,20) AND MA(CLOSE,10)>MA(CLOSE,20),2),2),3)=0,2);
X_24:=REF(MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,60)>MA(CLOSE,120) AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) AND MA(CLOSE,250)/REF(MA(CLOSE,250),1)>0.9995 AND MA(CLOSE,20)>MA(CLOSE,60) AND REF(HHV(HIGH,2),1)/LOW>1.1,1) AND OPEN/REF(CLOSE,1)<1.02 AND REF(COUNT(CLOSE/REF(CLOSE,1)>1.098,4)>0,1) AND REF(CLOSE,1)/REF(OPEN,1)>0.92 AND REF(MA(CLOSE,5),1)/REF(MA(CLOSE,10),1)>0.98 AND REF(COUNT(REF(OPEN,1)=REF(CLOSE,1) AND REF(CLOSE,1)/REF(CLOSE,2)>1.098 AND OPEN/REF(CLOSE,1)>1.015 AND OPEN/CLOSE>1.12 AND CLOSE/REF(CLOSE,1)<0.94,4)<1,1);
X_25:=NOT(REF(CLOSE,2)/REF(CLOSE,3)>1.03 AND REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(CLOSE,1)/REF(CLOSE,2)<0.97 AND REF(CLOSE,1)<REF(LOW,2)) AND REF(CLOSE,1)/REF(CLOSE,2)<1.05 AND REF(CLOSE,1)/REF(CLOSE,3)<0.992 AND CLOSE/REF(CLOSE,1)>1.02 AND REF(COUNT(OPEN=HIGH AND |