价量:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV
(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
ZLXS:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K1:=SMA(RSV,3,1);
D1:=SMA(K1,3,1);
KK:=INTPART(K1);
DD:=INTPART(D1);
TFXXS:=KK+DD;
TGLXS:=(TFXXS-REF(TFXXS,1));
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
ZSHTL:=SHCM/(ZLCM+SHCM)*100;
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;
A2:=REF(ZZLKP,2)<=REF(ZZLKP,3) AND ZZLKP<20;
A1:=REF(ZZLKP,1)<=REF(ZZLKP,2) AND ZZLKP<20;
A:=ZZLKP>REF(ZZLKP,1) AND ZZLKP<20 AND ZLXS>20 AND ZLXS<40 AND ZLXS>REF(ZLXS,1) AND
TGLXS>0;
XG1:=A2 AND A1 AND A ;
B2:=REF(ZZLKP,2)<=10 AND REF(ZZLKP,2)>REF(ZZLKP,3);
B1:=REF(ZZLKP,1)<=10 AND REF(ZZLKP,1)>REF(ZZLKP,2);
B:=ZZLKP>REF(ZZLKP,1) AND ZZLKP<20;
XG2:= B AND ZLXS>20 AND ZLXS<40 AND ZLXS>REF(ZLXS,1) AND TGLXS>0;
M5:=MA(C,5);
M10:=MA(C,10);
QS:=M5>M10;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,24);
DEA:=EMA(DIFF,9);
macd:=2*(DIFF-DEA);
XG11:=XG1 AND ZLXS>17 AND QS AND MacD>0 AND MACD>REF(MACD,1);
XG22:= XG2 AND ZLXS>17 AND QS AND MACD>0 AND MACD>REF(MACD,1);
去除ST:=EXIST((C/REF(C,1)-1)*100>5.6,60);
去除停牌:=DYNAINFO(4)>0; {通达信:今开大于零}
去除高价:=DYNAINFO(7)<50; {最新价小于40元}
去除大盘股:=CAPITAL/1000000<10; {流通盘为10亿以下}
等你飞:REF(XG11,1) OR REF(XG22,1) AND 去除ST AND 去除停牌 AND 去除高价 AND 去除大盘股;