{ 通达信势在必行选股指标公式源码 }
去除ST:=IF(NAMELIKE('ST'),0,1) AND IF(NAMELIKE('*ST'),0,1);
去除停牌:=DYNAINFO(4)>0;
去除大盘股:=CAPITAL/1000000<25;
去除次新股:=FINANCE(42)>120;
科创板:=IF(INBLOCK('科创板'),0,1);
现价:=CLOSE>3 AND CLOSE<100;
J1:=去除ST AND 去除停牌 AND 去除大盘股 AND 去除次新股 AND 科创板 AND 现价;
J8:=H/REF(L,5)<1.8;
J7:=macd.MacD>=REF(MACD.MACD,1);
REFLINE:=0;
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,5);
MACD:=2*(DIFF-DEA);
X1:=EMA(DIFF,5)*5;
X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
J2:=IF(X2>0,X2,0)>0.1;
J10:=J2>=REF(J2,1);
HL:=WINNER(C)*100;
HLX:=HL<60;
HLX5:=EXIST(HLX,8);
ZF:=IF(CODELIKE('30'),1.19,1.09);
HLD:=WINNER(C*ZF)*100;
HLD1:=HLD>75;
J3:=HLX5 AND HLD1;
M5:=MA(C,5);
M10:=MA(C,10);
M20:=MA(C,20);
M30:=MA(C,30);
M60:=MA(C,60);
M80:=MA(C,80);
M100:=MA(C,100);
M120:=MA(C,120);
J9:=H>M60;
XH:=(M5-M10)+(M5-M20)+(M5-M30)+(M5-M60)+(M5-M80)+(M5-M100)+(M5-M120);
J4:=XH>-1 AND XH<=6;
SS:=SSRP.SSRP;
J5:=SS>=REF(SS,1);
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
长K:=SMA(RSV1,5,1);
J6:=长K>=REF(长K,1);
JB:=J1+J2+J3+J4+J5+J6+J7+J8+J9+J10;
JBJ:FILTER(JB>=10,20);
标签:EMA,MA,M5,通达信,源码,去除,选股,CLOSE,REF From: https://www.cnblogs.com/zhibiao/p/18063720