{捕捉类型P,示例600055,002204,000899,但没法把002355捕捉到}
ZTJ:=IF(RANGE(FINANCE(3),2,5),ZTPRICE(REF(C,1),0.2),ZTPRICE(REF(C,1),0.1));
ZT:=H>=ZTJ;
TA:=ZT AND REF(EVERY(C>=ZTJ,2),1);
T1:=BARSLAST(TA);
TB:=CROSS(COUNT(C<REF(L,T1),T1),0.5);{划线起点}
TBH:=HHV(H,T1+1);
TT:=DRAWLINE(TB,TBH,REF(TB,1),REF(TBH,1),1);
T2:=REF(REF(MAX(O,C),BARSLAST(ZT=0)),T1);{划线延长的前提条件}
TBT:=BARSLAST(TB)+1;
NOTEXT:IF(EVERY(C>T2,TBT),TT,DRAWNULL);
{选股}
XG:=BARSSINCEN(CROSS(C,NOTEXT),TBT)=0;
DRAWICON(XG,L,1);