X_1:=MA(LOW,24)*1.09;
X_2:=crOSS(X_1,OPEN);
X_3:=MA((LOW+HIGH+CLOSE+OPEN)/4,25)*1.23;
X_4:=CROSS(X_3,OPEN);
X_5:=EMA(LOW,25);
X_6:=CROSS(CLOSE,X_5);
X_7:=REF(COUNT(REF(EMA(CLOSE,5)/REF(EMA(CLOSE,5),1)<1,1) AND EMA(CLOSE,5)/REF(EMA(CLOSE,5),1)>1,11)>=1,3) AND REF(EMA(CLOSE,5)/REF(EMA(CLOSE,5),1)>0.987,1) AND COUNT(OPEN
X_8:=REF(COUNT(CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE,5)>=1 AND OPEN>MA(CLOSE,5),3) AND REF(COUNT(HIGH/LOW>1.095 AND CLOSE
X_9:=X_8 AND OPEN/LOW<1.033 AND VOL
X_10:=X_9 AND OPEN/LOW<1.033 AND OPEN/CLOSE<1.033 OR (REF(COUNT(X_9,2)>=1,3) AND REF(CLOSE/REF(CLOSE,1)<0.911 OR (OPEN0.998 AND OPEN/REF(CLOSE,1)<1.033 AND OPEN/CLOSE<1.033) OR (REF(X_8,4) AND REF(COUNT(CLOSE/REF(CLOSE,1)<0.907,2)>=1,1) AND OPEN/CLOSE<1.033 AND (REF(CLOSE,1)/LOW>1.086 AND CLOSE/LOW>1.02 OR (OPEN/REF(CLOSE,1)>0.998 AND OPEN/REF(CLOSE,1)<1.033)));
X_11:=1000*CLOSE/INDEXC;
X_12:=1000*OPEN/INDEXO;
X_13:=1000*LOW/INDEXL;
X_14:=100*EMA(EMA(CLOSE-REF(CLOSE,1),6),6)/EMA(EMA(Abs(CLOSE-REF(CLOSE,1)),6),6);
X_15:=LLV(X_14,2)=LLV(X_14,7) AND COUNT(X_14<0,2) AND CROSS(X_14,MA(X_14,2));
X_16:=MA(CLOSE,5)
X_17:=CLOSE/REF(CLOSE,1)>=1.08 OR CLOSE/OPEN>1.06 AND (X_15 AND NOT(X_2) AND (NOT(REF(X_6 AND X_15,3)) AND NOT(REF(X_15 AND REF(CLOSE>OPEN,1),3))) OR (REF(X_15,4) AND CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE AND REF(COUNT(X_11
X_18:=REF(COUNT(X_17,4)>=1 AND CLOSE>OPEN AND REF(COUNT(CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE,3)=3,1),3) AND REF(OPEN1.01 AND HIGH/CLOSE>1.025 AND HIGH/CLOSE>OPEN/LOW,2) AND REF(CLOSE
X_19:=REF(COUNT(X_17,3)>=1 AND CLOSE>OPEN AND REF(COUNT(CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE,2)=2,1),5) AND REF(OPEN1.01 AND HIGH/CLOSE>1 AND HIGH/CLOSE>OPEN/LOW,4) AND REF(HIGH/CLOSE>CLOSE/OPEN AND REF(CLOSE1.041 OR CLOSE/OPEN>1.039) AND REF(CLOSE/OPEN<1.058 OR CLOSE/REF(CLOSE,1)<1.058,1) AND (REF(LOW,1)=1 AND CLOSE>ACD AND (COUNT(CLOSE>ACD,2)>=1 OR REF(CLOSE/OPEN<1.05,1)) AND REF(COUNT(CLOSE/OPEN>1.0595,7)>=1 OR COUNT(CLOSE/REF(CLOSE,1)>1.0595,7)>=1,3) AND (REF(CLOSE/OPEN<1,2) AND CLOSE>REF(CLOSE,2) OR (REF(CLOSE/OPEN>1,2) AND CLOSE>REF(OPEN,2))));
X_20:=REF(COUNT(X_17,3)>=1,2) AND REF(C>=O OR C/REF(C,1)<0.95,1) AND REF(C>=O AND REF(C/REF(C,1)>=1.08 OR C/O>1.067 AND C/REF(C,1)>=1.0785,1) OR (REF(COUNT(C/REF(C,1)>1.095 AND H=C,2)=2,2) AND O1.01) AND H/C>1.025 AND (H/C>O/L OR (C>O AND REF(C/REF(C,1)>1.095 AND H=C AND X_15,1))),1) AND C>=REF(O,1) AND O/REF(C,1)<1.03 AND COUNT(L/MA(C,5)<1.027,2)>=1 AND (L>REF(L,1) OR O/REF(C,2)<0.97 AND (X_12/X_13>REF(X_12/X_13,2) OR REF(X_15,5) AND REF(REF(REF(COUNT(X_11>X_12,4)>=1,1) AND X_11
X_21:=CLOSE/REF(CLOSE,1)>=1.095 AND HIGH=CLOSE AND REF(CLOSE/OPEN<1.05,1) AND (COUNT(X_7,3)>=1 OR REF(X_4,1)) AND COUNT(LOW=1 AND LOW
X_22:=REF(X_21,2) AND REF(CLOSE<=OPEN,1) AND (REF(HIGH/OPEN>1.043 AND REF(CLOSE>OPEN,4) OR (HIGH/CLOSE>1.089 AND OPEN/CLOSE>1.039 AND HIGH>OPEN AND REF(CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE,1)),1) AND OPEN/LOW<1.029 AND OPEN/REF(OPEN,2)<1.077 OR (REF(HIGH/OPEN>1.025 AND REF(CLOSE>OPEN,4) OR (HIGH/CLOSE>1.089 AND OPEN/CLOSE>1.039 AND HIGH>OPEN AND REF(CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE,1)),1) AND OPEN/LOW<1.053 AND REF(CLOSE
X_23:=REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE/REF(CLOSE,1)<1.05 AND REF(CLOSE,1)/REF(OPEN,1)>1.05 AND OPEN<(REF(CLOSE,1)+REF(OPEN,1)+REF(HIGH,1))/3 AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1);
X_24:=REF(COUNT(X_23,2)>0,1) AND (OPENREF(VOL,1)) AND CLOSE/REF(CLOSE,1)>1.05 AND OPEN
XG:X_18 OR X_19 OR X_20 OR X_22 OR X_24;