X1:=C>REF(C,1) AND L>REF(L,1) AND V>REF(V,1) AND C>MA(C,20);
X2:=COUNT(X1,3)=3;
X3:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,60) AND MA(C,60)>MA(C,120) AND MA(C,120)>MA(C,250);
X4:=X2 AND X3 AND V<MA(V,5)*2;
X5:=REF(X4,1) AND C<O AND C<REF(C,1) AND V<MA(V,5) AND V<MA(V,10);
X6:=REF(X4,2) AND C<O AND C<REF(C,1) AND V<MA(V,5) AND V<MA(V,10);
XG:X5 OR X6;