JL:=REF(V,3)>=MA(V,3)*0.8;
BP:=L>REF(O,3)*1.01 AND REF(L,1)>REF(O,3)*1.01 AND REF(L,2)>=REF(O,3)*1.01;
BJ:=REF(C,3)>REF(C,4) AND REF(C,3)>REF(O,3);
AB:=BJ AND JL AND BP;
T:=BARSLAST(AB);
LL:=IF(T=1 OR T=2 OR T=3,L,9999);
LT:=BARSLAST(LL=LLV(LL,T));
VAR1:=CONST(LT)<100 AND LT>0;
VAR2:= CONST(REF(L,LT))=CONST(L);
XG:VAR1 AND VAR2;