ZTB1:=C/REF(C,1)>1.097;
ZTB2:=C/REF(C,1)>1.197;
ZTB:=IF(CODELIKE('60')||CODELIKE('00'),ZTB1,ZTB2);
BT:=BARSLAST(ZTB);
NGZTB:=REF(C,BT+1)/REF(C,BT+2)<1.097;
LL:=LLV(C,BT)>REF(O,BT);
ZTBHT:=NGZTB AND LL;
A:=BARSLAST(ZTBHT);
A31:=REF(BT,1);
AA:=A<A31;
A2:=A31<20 AND C=HHV(C,A31+1) AND O<REF(H,A31+1);
AA AND A2 AND ZTB AND COUNT(ZTB,A31+1)=1;