剔除ST:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);
剔除北交所:=IF(CODELIKE('8'),0,1) ;
剔除科创板:=IF(CODELIKE('688'),0,1);
三板市场:=IF(CODELIKE('4'),0,1);
去除停牌:=DYNAINFO(4)>0;
剔除非主板:=剔除ST AND 剔除科创板 AND 剔除北交所 AND 三板市场 AND 去除停牌;
TYP:=(HIGH+LOW+CLOSE)/3;
cci1:=(TYP-MA(TYP,90))/(0.015*AVEDEV(TYP,90));
A1:=CCI1>0 ;{CCI突破零}
A2:=C/REF(C,1)>=1.03;{涨幅大于5%};
A4:=DYNAINFO(15)>=10000000;{竞价大于千万}
流通市值:=ROUND(FINANCE(40)/100000000);
XG1:=流通市值<300;
XG:=O>REF(C,1) AND C>REF(H,1);{今日高开收盘价大于昨日最高价};
X:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>45 AND XG;{5日均线倾角大于60度}
动态底部:=EMA(IF(L<= LLV(L,30),SMA(Abs(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0),3)*10;
强弱:=EMA(SLOPE(C,21)*20+C,42),COLORWHITE,LINETHICK2;
A3:=C/REF(C,1)>=1.05;{涨幅大于5%};
HS2:=DYNAINFO(37)*100>1;
YY:=C>强弱 AND X AND A3 AND HS2 AND 剔除非主板;
XGH:A1 AND A2 AND A3 AND XG1 AND 剔除非主板 AND YY AND A4;