A1:=REF(C,5)
A2:=(A1 AND ALL(C>O,2)) OR (A1 AND C>O AND REF(C,1)REF(O,2));
MA5:=MA(C,5);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA40:=MA(C,40);
MA60:=MA(C,60);
MA120:=MA(C,120);
MA250:=MA(C,250);
X:=MA5<25 AND MA5
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
DD:=COUNT(DIF>0 AND DEA>0,7)=7;
红绿柱:=MacD>REF(MACD,1) AND REF(MACD,1)<=REF(MACD,2) AND REF(MACD,2)<=REF(MACD,3);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
多头金叉:=J>REF(J,1) AND K>REF(K,1);
{- }
单日换手:=vol/CAPITAL*100;
十日换手:=SUM(单日换手,10);
换手:=单日换手>2 AND 十日换手>30;
流通盘:=CAPITAL<300000000;
ST:=STRFIND(stkname,'ST',1)>0;
星ST:=STRFIND(stkname,'*ST',1)>0;
S:=STRFIND(stkname,'S',1)>0;
停牌:=(DYNAINFO(4)=0);
去除:=not(ST) and not(停牌) and not(S) and not(星ST);
XG:A2 AND X AND DD AND 红绿柱 AND 多头金叉 AND 换手 AND 流通盘 AND 去除;