M:=1;
N:=M*3;
BB:=REF(C,1)/REF(O,1)<1.04 AND REF(C,1)/REF(O,1)>0.9 AND REF(C,1)/REF(C,2)<1.03;
B1:=EVERY(BB,N);
B2:=EVERY(BB,N+1);
B3:=EVERY(BB,N+2);
BJ1:=(REF(C,N+2)+REF(L,N+1))/2;
BJ2:=(REF(C,N+3)+REF(L,N+2))/2;
BJ3:=(REF(C,N+4)+REF(L,N+3))/2;
BB1:=B1 AND EVERY(REF(H,1)
BB2:=B2 AND EVERY(REF(H,1)
BB3:=B3 AND EVERY(REF(H,1)
XG:BB1 OR BB2 OR BB3;