兄弟,先纠正下一你:在dmi指标中,有四条线,分别是:adx ,adxr ,pdi 和mdi,不叫fdi,您写错了。按你的要求写出的选股公式为:mtr:=expmema(max(max(high-low,abs(high-ref(close,1))),abs(ref(close,1)-low)),14);hd :=high-ref(high,1);ld :=ref(low,1)-low;dmp:=expmema(if(hd>0&&hd>ld,hd,0),14);dmm:=expmema(if(ld>0&&ld>hd,ld,0),14);pdi:= dmp*100/mtr;mdi:= dmm*100/mtr;adx:= expmema(abs(mdi-pdi)/(mdi+pdi)*100,6);adxr:=expmema(adx,6);pdi<10 and pdi>ref(pdi,1) and adx>70 and adxr>70 and adx<ref(adx,1) and adxr<ref(adxr,1) and mdi<ref(mdi,1);这个选股公式比较准备,选出的股85%以上会在20天内上涨5%以上。但全年选出的股不多,一年内400多个信号而已。你自己看着用吧。dmi指标不能判断进出,只能做参考。配合薛斯通道、cci指标一起使用好一点儿。 20210311