去除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;

去除创业板:=IF(CODELIKE('300') OR CODELIKE('301') ,0,1) ;

涨跌:=REF(C,1);

涨停:=IF(((((C - 涨跌) 100) / 涨跌) >= (10 - ((0.01 100) / 涨跌))),1,0);

VAR4:=EMA(CLOSE,9);

飞狐线:=(MA(CLOSE,25) + ((MA(CLOSE,25) * 20) / 100));

强势线:=(MA(CLOSE,25) + ((MA(CLOSE,25) * 6) / 100));

支撑线:=((((MA(CLOSE,3) + MA(CLOSE,6)) + MA(CLOSE,12)) + MA(CLOSE,24)) / 4);

压力线:=EMA((VAR4 * 1.14),5);

盈损线:=(LLV(REF(LOW,1),2) + ((HHV(REF(HIGH,1),2) - LLV(REF(LOW,1),2)) / 2));

QD:=(((C > 强势线) AND (C > 支撑线)) AND (C > 盈损线));

小妖:=((COUNT(QD,10) = 1) AND QD);

XYJJ:=BARSLAST(小妖);

JS:=CROSS(C,压力线);

妖狐:=((COUNT(JS,XYJJ) <= 1) AND JS);

HX1:=((REF(妖狐,1) AND (O > 压力线)) AND (C > 压力线));

HX2:=((REF(妖狐,1) AND CROSS(C,飞狐线)) AND (C > 压力线));

狐仙前世:=(小妖 AND 妖狐);

狐仙金身:=(HX1 OR HX2);

妖狐王:=((((REF(涨停,1) AND (O > 压力线)) AND (O > REF(H,1))) AND (REF(H,1) < REF(压力线,1))) AND (L >= 压力线));

XG:=((狐仙前世 OR 狐仙金身) OR 妖狐王)AND C>REF(C,1)*1.05;

去除:去除ST AND 去除科创板 AND 去除北交所 AND 三板市场 AND 去除停牌

AND REF(C<H,1) AND XG=1;