S:=IF(NAMELIKE('S'),1,0)=0;{非S}
ST:=IF(NAMELIKE('ST'),1,0)=0;{非ST}
SST:=IF(NAMELIKE('*S'),1,0)=0;{非*S}
停牌:=DYNAINFO(4)>0;
PE:=C/FINANCE(33);
SYL:=PE>0;{市盈率为正}
JBM:=S AND ST AND SST AND 停牌 AND SYL;
A1:=BArslAST(REF(crOSS(macd.DIF,MacD.DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND MACD.DIF>REF(MACD.DIF,A1+1) AND CROSS(MACD.DIF,MACD.DEA);
TS1:=BARSLAST(CROSS(MACD.MACD*10,0));
CC:=BARSLAST(CROSS(MACD.DEA,MACD.DIF));
TS:=REF(BARSLAST(CROSS(MACD.DIF,MACD.DEA)),1);
EE:=(EVERY(MACD.DIF<=0.25 AND MACD.DEA<=0.05 ,TS+1) AND COUNT(CROSS(MACD.DEA,MACD.DIF),TS+1)=1 AND CROSS(kdj.J,kdJ.D));
XG1:COUNT(底背离,TS)>=0 AND EE AND HHV(C,30)/C>=1.25 AND H<HHV(H,5) AND JBM AND C/O<=1.07;