N:=3;
RC:=REF(C,1);
Y:=C>O OR (C=O AND C>RC);
RY:=SUMBARS(Y,2)-1;
RL:=REF(L,RY);
Y2:=IF(Y,IF(RY=1,0,O<RL),0);
Y2T:=BARSLAST(Y2)+1;
T1:=Y2T>=N AND EVERY(Y,Y2T) AND EVERY(H>=REF(H,1) AND V>REF(V,1),Y2T);
XG:Y=0 AND REF(T1,1) AND V<REF(V,1);