N:=9;
M:=0;
TS:=BArslASTCOUNT(C<=O) OR BARSLASTCOUNT(C<=REF(C,1));
BX:=C>=REF(HHV(H,N),1) AND O<=REF(LLV(L,N),1);
BY:=O<=REF(LLV(L,TS),1) AND C>=REF(HHV(H,TS),1) AND REF(TS=N,1);
XG:IF(M=0,BX,BY);
N:=9;
M:=0;
TS:=BArslASTCOUNT(C<=O) OR BARSLASTCOUNT(C<=REF(C,1));
BX:=C>=REF(HHV(H,N),1) AND O<=REF(LLV(L,N),1);
BY:=O<=REF(LLV(L,TS),1) AND C>=REF(HHV(H,TS),1) AND REF(TS=N,1);
XG:IF(M=0,BX,BY);