N:=3;M:=0;YS:=BARSLASTCOUNT(C>=O) OR BARSLASTCOUNT(C>=REF(C,1));GX:=O>=REF(HHV(H,N),1) AND C<=REF(LLV(L,N),1);GY:=C<=REF(LLV(L,YS),1) AND O>=REF(HHV(H,YS),1) AND REF(YS=N,1);XG:IF(M=0,GX,GY);