回调周期:=15;
板数:=2;
BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,0.1));
ZT:=C>=ZTPRICE(REF(C,1),BK) AND C=H;
ZB:=H>=ZTPRICE(REF(C,1),BK) AND C<H;
DT:=C<=DTPRICE(REF(C,1),BK) AND C=L;
LB:=EVERY(ZT,板数);
ZTR:=BARSLAST(LB);
HR:=FINDHIGHBARS(H,0,ZTR+1,1);
Hcr:=ZTR-HR;
M20B:=EMA(C,20)>REF(EMA(C,20),1);
UPM20:=COUNT(M20B,ZTR)>=ZTR-1;
YY:=C>O AND REF(C,1)<REF(O,1);
ZD:=LLV(L,ZTR)=LLV(L,2);
LT:=REF(DT,1)=0 AND REF(ZB,1)=0 AND ZT=0;
XG:ZTR<回调周期 AND HCR<=1 AND UPM20 AND YY AND ZD AND LT;