BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.19,IF(INBLOCK('ST板块'),0.05,0.096)));
涨停:=C>=ZTPRICE(REF(C,1),BK) AND C=H;
曾涨停:=H>=ZTPRICE(REF(C,1),BK) AND C<H ;
F02:= NOT(NAMELIKE('S')||NAMELIKE('*S'));
烂板:=曾涨停 AND REF(C,1)/REF(C,2)<1.09;
DA:= BARSLAST(烂板);
DB:= BARSLAST(涨停);
SPJ:=REF(C,DA);
SPJ1:=REF(C,DB);
XG:H/REF(C,1)>1.04 AND REF(EXIST(烂板,1),1)AND F02;