最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 大智慧DMI超级转向指标公式

    正文概述    2024-04-13 00:41:44  

    N:=14;M:=6;ADXP:=1;
    TR:=SMA(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1);
    HD:=HIGH-REF(HIGH,1);
    LD:=REF(LOW,1)-LOW;
    DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N,1);
    DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N,1);
    pdi:DMP*200/TR,COLORRED;
    mdi:DMM*200/TR,COLORBLUE;
    ADX:SMA(ABS(MDI-PDI)/(MDI+PDI)*200,M,1),COLORYELLOW;
    ADXR:(ADX+REF(ADX,M))/2,COLORMAGENTA,LINETHICK2;
    IF(ADX IF(PDI IF(MDI STICKLINE(ADX<=REF(ADXR,1),ADX,ADXR,1,0),COLOR00FF00;
    STICKLINE(ADX>REF(ADXR,1),ADX,ADXR,1,0),COLORMAGENTA;
    STICKLINE(REF(PDI,1) STICKLINE(REF(PDI,1)>PDI,PDI,REF(PDI,1),1,0),COLORBLUE;
    STICKLINE(REF(MDI,1)>MDI,MDI,REF(MDI,1),1,0),COLORRED;
    STICKLINE(REF(MDI,1) {传统MDI加进四条线 }
    CD0:16,POINTDOT;
    CD1:30,POINTDOT;
    TD0:60,POINTDOT;
    TD1:80,POINTDOT;
    DRAWTEXT(crOSS( PDI,CD0), CD0,'●金'),COLORMAGENTA;
    DRAWTEXT(CROSS( TD0,PDI), PDI,'●死'),COLORBLUE;
    DRAWTEXT(CROSS( ADX,CD0), CD0,'●金'),COLORMAGENTA;
    DRAWTEXT(CROSS( TD0,ADX), ADX,'●死'),COLORBLUE;
    DRAWTEXT(CROSS( PDI,MDI), MDI,'★金'), COLORYELLOW;
    DRAWTEXT(CROSS( MDI,PDI), PDI,'★死'), COLORGREEN;
    DRAWTEXT(CROSS( ADX,ADXR), ADXR,'★金'), COLOR000999 ;
    DRAWTEXT(CROSS( ADXR,ADX), ADX,'★死'), COLORCYAN;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 大智慧DMI超级转向指标公式 加入收藏