adx指标公式adx指标公式
通达信adx指标公式
n:=14;
tr1:=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/tr1,colorred,dotline;
mdi:dmm*100/tr1,colorgreen,dotline;
adx:sma(abs(mdi-pdi)/(mdi+pdi)*100,n,1),coloryellow,linethick2;
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-42848-1.html
只求唯凯源的不要觉得这和你家凯源魅力有啥关系
懂点哲学的小学生都知道世界上没有绝对的事