同花顺ADX趋势强度指标公式
-
相关简介:M1=14; M2=6; TR=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),M1); HD=HIGH-REF(HIGH,1); LD=REF(LOW,1)-LOW; DMP=SUM(IF(HD0 AND HDLD,HD,0),M1); DMM=SUM(IF(LD0 AND LDHD,LD,0),M1); DI1=DMP*100/TR; DI2=DMM*100/TR; ADX:MA(ABS(DI2-DI1)
-
文章来源:股海网作者:股海网发布时间:2016-06-12浏览次数:
M1=14;
M2=6;
TR=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),M1);
HD=HIGH-REF(HIGH,1);
LD=REF(LOW,1)-LOW;
DMP=SUM(IF(HD>0 AND HD>LD,HD,0),M1);
DMM=SUM(IF(LD>0 AND LD>HD,LD,0),M1);
DI1=DMP*100/TR;
DI2=DMM*100/TR;
ADX:MA(ABS(DI2-DI1)/(DI1+DI2)*100,M2);
a:30,DOTLINE,colorwhite;
b:50,DOTLINE,colorred;
C:20,DOTLINE,colorgreen;