{第1稿}
{RV:=REF(V,1);
T1:=V>RV;}
LV:=LN(V);
RV:=REF(LV,1);
T1:=LV>RV;
V1:=BARSLAST(T1=1);
V2:=BARSLAST(T1=0);
T2:=HHVBARS(H,REF(V1+1,V2)+V2);
T3:=REF(REF(H,V1),V2);
RC:=REF(C,1);
ZTJ:=IF(RANGE(FINANCE(3),2,5),ZTPRICE(RC,0.2),ZTPRICE(RC,0.1));
TA:=T1 AND T2=0 AND C>T3 AND H>=ZTJ;
TAT:=BARSLAST(TA);
YC:=HHV(IF(C<O,C,0),TAT+1);
TB:=CROSS(COUNT(MAX(O,C)<YC,TAT),0.5);
TBT:=BARSLAST(TB);
TBC:=REF(YC,TBT);{即水平线的值}
NOTEXT:DRAWLINE(TB,TBC,REF(TB,1),REF(TBC,1),1),COLORWHITE;
XG:=IF(TBT=DRAWNULL,0,IF(TBT>20,0,CROSS(C,TBC)));{第一次}
DRAWICON(XG,L,1);