XA_1:=REF(C,1)>C*1.03;
XA_2:=MA(C,5)>MA(C,10);
XA_3:=C<MA(C,5);
XA_4:=XA_1 AND XA_2 AND XA_3;
XA_5:=C>O*1.028;
XA_6:=MA(REF(HHV(C,21),1),21);
XA_7:=CROSS(H,XA_6);
XA_8:=ABS(WINNER(H)-WINNER(OPEN))*100;
XA_9:=CROSS(XA_8,27);
XA_10:=H>O*1.06;
XA_11:=XA_7 AND XA_9 AND XA_10;
XA_12:=BARSLAST(XA_11);
XA_13:=BETWEEN(XA_12,2,7);
XA_14:=REF(XA_4,1) AND XA_5 AND REF(XA_13,1)>0 ;
XG:FILTER(XA_14,5);