ZT:=C>REF(C,1)*1.095 AND C=H;ZQ:=BARSLAST(ZT);ZQ1:=REF(ZQ,1)+1;XG:C>REF(C,ZQ1+1)*0.98 AND REF(O>REF(H,1),ZQ-1) AND C<REF(C,ZQ1+1)*1.02 AND ZQ<5 AND ZQ>1;