通达信华丽dmi指标超级用法指标公式:
TRR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
PDI: DMP*100/TRR;
MDI: DMM*100/TRR;
ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:EXPMEMA(ADX,6),COLOR00FF00,LINETHICK2;
DRAWBAND(PDI,RGB(240,0,0),MDI,RGB(0,120,0));
DRAWBAND(ADX,RGB(220,0,130),ADXR,RGB(240,240,0));
关注线:50,COLORF0F000,POINTDOT;
通达信华丽dmi指标超级用法指标公式