{涨停复盘优选选股}
去ST:=NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0;
去科创板:=NOT(CODELIKE('688'));
去北证:=NOT(CODELIKE('8'));
去北证A:=NOT(CODELIKE('4'));
去新股:=IF(NAMELIKE('N'),0,1);
去次新股:=FINANCE(42) > 60;
去停牌:=DYNAINFO(4)>0;
股价:=DYNAINFO(7)<80 AND DYNAINFO(7)>2.5;
{股价>5<80}
去大股:=FINANCE(40)<100*100000000;
PC:=去ST AND 去科创板 AND 去北证 AND 去新股 AND 去北证A AND 去次新股 AND 股价 AND 去停牌 AND 去大股;
封成比:=GPJYVALUE(22,1,0);
换手率:=VOL/CAPITAL*100;
{量化评分}
X1:=IF(MA(C,5)>MA(C,10),20,0);
X2:=IF(MA(C,20)>MA(C,60),10,0);
X3:=IF(KDJ.J>KDJ.K,10,0);
X4:=IF(MACD.DIF>MACD.DEA,10,0);
X5:=IF(MACD.MACD>0,10,0);
X6:=IF(V>MA(V,60),10,0);
X8:=IF(C/REF(C,1)>1.03,10,0);
XX:=X1+X2+X3+X4+X5+X6+X8;
TJ1:=V/((H-L)*2-ABS(C-O));
主动买盘:=IF(C>O,TJ1*(H-L),IF(C<O,TJ1*((H-O)+(C-L)),V/2));
主动卖盘:=IF(C>O,TJ1*((H-C)+(O-L)),IF(C<O,TJ1*(H-L),V/2));
买卖比:=主动买盘/主动卖盘;
涨停:IF(NAMELIKE('ST') OR NAMELIKE('*ST'),C=ZTPRICE(REF(C,1),0.05),IF(CODELIKE('688') OR (CODELIKE('300')),C=ZTPRICE(REF(C,1),0.2),C=ZTPRICE(REF(C,1),0.1))) AND PC AND 换手率<15 AND 封成比>3 AND XX>=60 AND 买卖比>3;