最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信卜斌理论指标公式

    正文概述    2024-04-13 17:16:07  

    N:=14;
    M:=6;
    TR:=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/TR;
    mdi:= DMM*100/TR;
    DRAWBAND(PDI,RGB(110,0,110),MDI,RGB(0,88,88));
    ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
    ADXR:=EXPMEMA(ADX,M);
    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    STICKLINE(ADXR,20,0,1,0)COLOR202020;
    STICKLINE(ADXR,50,20,1,0)COLOR404040;
    STICKLINE(ADXR,80,50,1.5,0)COLORWHITE;
    {- }
    DRAWBAND(100,RGB(0,80,150),D,RGB(0,100,0));
    DRAWBAND(100,RGB(0,50,110),80,RGB(0,100,0));
    DRAWBAND(D,RGB(155,0,0),ADXR,RGB(0,150,0));
    STICKLINE(D>ADXR,ADXR,D,3.2,0),COLOR000045;
    STICKLINE(D>ADXR,ADXR,D,2.7,0),COLOR000065;
    STICKLINE(D>ADXR,ADXR,D,2.2,0),COLOR000085;
    STICKLINE(D>ADXR,ADXR,D,1.7,0),COLOR0000A5;
    STICKLINE(D>ADXR,ADXR,D,1.2,0),COLOR0000C5;
    STICKLINE(D LC:=REF(CLOSE,1);
    rsi1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORYELLOW;
    K1:SMA(RSV,3,1)LINETHICK2;
    DRAWICON(crOSS(REF(ADXR,1),ADXR) AND D>ADXR AND ADXR>50,20,2);


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信卜斌理论指标公式 加入收藏