通达信新DMI修改版本指标公式_通达信

通达信MACD仓位控制指标公式

通达信新DMI修改版本指标公式:

MTR:=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/MTR;

mdi: DMM*100/MTR;

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

ADXR:EXPMEMA(ADX,6),COLORWHITE,LINETHICK3;

DRAWBAND(ADX,RGB(139,101,108),ADXR,RGB(72,118,255));

DMM*100/MTR,COLOR00FF00,LINETHICK3;

DMP*100/MTR,COLOR0000FF,LINETHICK3;

VARA4:=(L+H+C+O)/4;

通达信中线顶底指标公式