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);if(pdi>ref(pdi,1),pdi,0) and pdi>=30 and if(adx>ref(adx,1),adx,0) and adx>=30;你的这个选股条件有毛病,你自己观察各个个股每当在区间时,pdi和adx各什么状态。 20210311
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;a:=ma(c,20);b:=ma(c,60);xg:j<0 and j>ref(j,1) and a>b;测试通过,希望能够帮助你!