BB:=CLOSE REF(CLOSE,1)*1.095;
A1:=BArslAST(BB);
A2:=BETWEEN(C,REF(C,A1)*1.03,REF(C,A1)*0.97) AND A1
A3:=REF(O,3) REF(O,2);
A4:=REF(O,2) REF(O,1);
A5:=CLOSE REF(CLOSE,1)*1.03 AND C
A6:=BETWEEN(C,REF(O,A1)*1.03,REF(O,A1)*0.97) AND A1
B1:=A2 AND A3 AND A4 AND A5;
B2:=A6 AND A3 AND A4 AND A5;
B:=B1 OR B2;
XG:FILTER(B,5),COLORRED;