XA_1:=REF(OPEN,2)/REF(CLOSE,2)>1.03 AND REF(MA(CLOSE,5),2)>REF(MA(CLOSE,10),2) AND REF(MA(CLOSE,5),2)>REF(MA(CLOSE,20),2);
XA_2:=REF(OPEN,2)/REF(CLOSE,2)>1.041 AND REF(MA(CLOSE,5),2)>REF(MA(CLOSE,10),2) AND REF(MA(CLOSE,5),2)>REF(MA(CLOSE,20),2);
XA_3:=REF(HIGH,1)>REF(OPEN,1) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(HIGH,1)<REF(OPEN,2);
XA_4:=REF(HIGH,1)>REF(CLOSE,1) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(HIGH,1)<REF(OPEN,2) AND REF(CLOSE,1)/REF(OPEN,1)<1.015;
XA_5:=CLOSE>OPEN AND CLOSE/REF(CLOSE,1)>1.031 AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,5)>MA(CLOSE,20) AND MA(CLOSE,10)>MA(CLOSE,30) AND MA(CLOSE,10)>MA(CLOSE,60);
XA_6:=REF(VOL,1)<REF(VOL,2) AND REF(LOW,2)/LOW<1.055;
XA_7:=XA_1 AND XA_3 AND XA_5 AND XA_6;
XA_8:=XA_2 AND XA_4 AND XA_5 AND XA_6;
XA_9:=XA_7 OR XA_8;
XA_10:=REF(OPEN,3)/REF(CLOSE,3)>1.04 AND REF(CLOSE,3)/REF(CLOSE,4)<0.97 AND REF(MA(CLOSE,5),3)>REF(MA(CLOSE,10),3) AND REF(MA(CLOSE,5),3)>REF(MA(CLOSE,20),3);
XA_11:=MAX(REF(CLOSE,1),REF(OPEN,1))/MIN(REF(CLOSE,1),REF(OPEN,1))<1.02 AND MAX(REF(CLOSE,2),REF(OPEN,2))/MIN(REF(CLOSE,2),REF(OPEN,2))<1.025;
XA_12:=REF(VOL,1)<REF(VOL,3) AND REF(VOL,2)<REF(VOL,3);
XA_13:=CLOSE>OPEN AND CLOSE/REF(CLOSE,1)>1.041 AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,5)>MA(CLOSE,20) AND MA(CLOSE,10)>MA(CLOSE,30) AND CLOSE>MA(CLOSE,60);
XA_14:=XA_10 AND XA_11 AND XA_12 AND XA_13;
XA_15:=REF(OPEN,4)/REF(CLOSE,4)>1.04 AND REF(CLOSE,4)/REF(CLOSE,5)<0.97 AND REF(MA(CLOSE,5),4)>REF(MA(CLOSE,10),4) AND REF(MA(CLOSE,5),4)>REF(MA(CLOSE,20),4);
XA_16:=MAX(REF(CLOSE,1),REF(OPEN,1))/MIN(REF(CLOSE,1),REF(OPEN,1))<1.02 AND MAX(REF(CLOSE,2),REF(OPEN,2))/MIN(REF(CLOSE,2),REF(OPEN,2))<1.025;
XA_17:=REF(VOL,1)<REF(VOL,3) AND REF(VOL,2)<REF(VOL,3);
XA_18:=CLOSE>OPEN AND CLOSE/REF(CLOSE,1)>1.041 AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,5)>MA(CLOSE,20) AND MA(CLOSE,10)>MA(CLOSE,30) AND CLOSE>MA(CLOSE,60);
XA_19:=XA_15 AND XA_16 AND XA_17 AND XA_18;
XA_20:=XA_14 OR XA_9 OR XA_19;
XA_21:=XA_20;
XA_22:=COUNT(CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE,30)>=1;