股王修改过的DMI副图指标-精品通达信指标公式源码分享

image.png

N:=3;M:=2;

TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);

HD :=HIGH-REF(HIGH,1);

LD :=REF(LOW,1)-LOW;

DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);

DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);

PDI: DMP*100/TR;

MDI: DMM*100/TR;

ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);

ADXR:EXPMEMA(ADX,M);


相关阅读

服务热线

18020657357

微信客服

微信客服