最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 精典之极--DMI

    正文概述    2024-04-07 18:52:12  
    LC:=REF(CLOSE,1);
    RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORFF0000;
    IF(RSI1 53,RSI1,DRAWNULL),COLORRED,LINETHICK1;
    DRAWICON(CROSS(RSI1,53),53-1,11);
    MTR:=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 LD,HD,0),N);
    DMM:=EXPMEMA(IF(LD 0 HD,LD,0),N);
    PDI: DMP*100/MTR,COLORFFFFFF;
    MDI: DMM*100/MTR,COLOR00FFFF;
    ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;
    ADXR:EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;
    {一,MDI必须在下方,PDI在下方无效,二、PDI趋势向上。三、必须在PDI及MDI中间金叉 }
    T1:=CROSS(ADX,ADXR) AND PDI MDI AND PDI REF(PDI,1)
    AND BETWEEN(ADXR,MDI,PDI) AND ADX REF(ADX,1) AND ADXR REF(ADXR,1);
    DRAWICON(T1,ADXR,1);
    {ADX ADXI同时上穿MDI }
    T2:=CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDI
    DRAWICON(T2,MDI,17);


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 精典之极--DMI 加入收藏