最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信DMI关注线副图未加密选股指标公式源码

    正文概述    2022-04-26 00:00:00  

    N:=14;M:=6;
    TRTR:=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/TRTR;
    mdi:= DMM*100/TRTR;
    STICKLINE(PDI>=MDI,PDI-MDI,0,2,1),COLOR9900FF;
    STICKLINE(PDI<MDI,PDI-MDI,0,2,1),COLORF69ECE;
    ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
    ADXR:=EXPMEMA(ADX,M);
    DRAWBAND(ADX,RGB(200,0,200),ADXR,RGB(150,150,150));
    ADX2:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR00EEEE,LINETHICK1;
    ADXR2:EXPMEMA(ADX,M),COLORFFFFFF,LINETHICK1;
    关注线:=50,COLORF0F000,POINTDOT;
    IF(ADX>=ADXR,85,DRAWNULL),COLORF580F5,LINETHICK8;
    IF(ADX<ADXR,85,DRAWNULL),COLORCCDD66,LINETHICK6;
    IF(PDI>=MDI,-55,DRAWNULL),COLOR0000EE,LINETHICK8;
    IF(PDI<MDI,-55,DRAWNULL),COLOR33AA33,LINETHICK6;



    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信DMI关注线副图未加密选股指标公式源码 加入收藏