依据你的条件,编写了如下的选股公式 ,在通达信软件里用的,如果没有什么意外的话,相信在其它的软件里都可用。要验证效果的话,很简单,可以先把下面的源码放在指标副图指标公式里,就可以看到效果了。符合你的条件的选股公式:dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;m5:=ma(c,5);o1:=ref(c,1)-ref(c,1)*0.3/100;o2:=ref(c,1)+ref(c,1)*5/100;符合买入:ref(c,1)m5 and o>o1 and o0;欢迎验证测试,希望对你有用,谢谢!!如有不明白的,也可加本人qq问:972770432。 20210311
a1:=ma(c,5)>ref(ma(c,5),1) and ma(c,10)>ref(ma(c,10),1) and ma(c,20)>ref(ma(c,20),1) and ma(c,60)>ref(ma(c,60),1);vpt:=sum(vol*(close-ref(close,1))/ref(close,1),0);m**pt:=ma(vpt,6);a2:=vpt...