TJ:=MIN(O,C)/L>1.04;T1:=BARSLAST(TJ);T2:=REF(T1,T1+1)+T1+1;T3:=CONST(T2-T1<=30 AND BETWEEN(REF(L,T1)-REF(L,T2),0.01,-0.01));B:=T3 AND CURRBARSCOUNT=CONST(T1)+1;D:=BARSLAST(B);COUNT(C>REF(H,D),D+1)=1 AND C>REF(H,D);