dmi中adx和adxr值相差相差正负0.5之间的指标源码?
n:=14;m:=6;tr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),n);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sum(if(hd>0 and hd>ld,hd,0),n);dmm:=sum(if(ld>0 and ld>hd,ld,0),n);pdi:=dmp*100/tr;mdi:=dmm*100/tr;adx:=ma(abs(mdi-pdi)/(mdi+pdi)*100,m);adxr:=(adx+ref(adx,m))/2;adx-adxr<0.5 and adx-adxr>-0.5; 20210311