申万宏源技术指标测试大全之二十一— Ease of Movement
由crisvalentine创建,最终由crisvalentine 被浏览 47 用户
指标介绍
动向指标(Directional Movement Index):简称:DMI
所需数据和参数:DMI(high,low,close,lag,thred )
指标伪码:
MTR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),LAG);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=MA(IF(HD>0&&HD>LD,HD,0),LAG);
DMM:=MA(IF(LD>0&&LD>HD,LD,0),LAG);
PDI:DMP100/MTR;
MDI:DMM100/MTR;
ADX:=EMA(ABS((PDI-MDI)/(PDI+MDI))*100,LAG);
指标含义
/wiki/static/upload/3f/3fd9fa23-ce33-4ea7-9157-0c01f87720fb.pdf
\