n:=14;m:=6;vv:=sma(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),n,1);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sma(if(hd>0 and hd>ld,hd,0),n,1);dmm:=sma(if(ld>0 and ld>hd,ld,0),n,1);pdi:dmp*100/vv;mdi:dmm*100/vv;adx:sma(abs(mdi-pdi)/(mdi+pdi)*100,n,1);adxr:(adx+ref(adx,m))/2;{已测试制可直接引用,如果回答,请记得给采} 20210311
n:=14;m:=6;vv:=sma(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),n,1);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sma(if(hd>0 and hd>ld,hd,0),n,1);dmm:=sma(if(ld>0 and ld&g...