最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信四量图+量能饱和度指标公式

    正文概述    2024-04-13 15:13:16  

    SMA1:=24;
    SMA2:=14;
    SMA3:=6;
    SMA4:=6;
    MID9:=(3*CLOSE+LOW+OPEN+HIGH)/6;
    牛线1:=(20*MID9+19*REF(MID9,1)+18*REF(MID9,2)+17*REF(MID9,3)+16*REF(MID9,4)+15*REF(MID9,5)+14*REF(MID9,6)+13*REF(MID9,7)+12*REF(MID9,8)+11*REF(MID9,9)+10*REF(MID9,10)+9*REF(MID9,11)+8*REF(MID9,12)+7*REF(MID9,13)+6*REF(MID9,14)+5*REF(MID9,15)+4*REF(MID9,16)+3*REF(MID9,17)+2*REF(MID9,18)+REF(MID9,20))/210,COLORGREEN{COLORRED};
    马线1:=MA(牛线1,6),COLORMAGENTA{COLORYELLOW};
    STICKLINE(C>牛线1,-1.9,-0.4,4,0),COLORRED{COLORED},LINETHICK2;
    STICKLINE(C<马线1,-1.9,-0.4,4,0),COLOR008000{COLORGREEN},LINETHICK2;
    STICKLINE(牛线1>=C AND C>=马线1,-1.9,-0.4,8,0),COLOR008000{COLORGREEN},LINETHICK2;
    MID1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
    牛线:=(20*MID1+19*REF(MID1,1)+18*REF(MID1,2)+17*REF(MID1,3)+16*REF(MID1,4)+15*REF(MID1,5)+14*REF(MID1,6)+13*REF(MID1,7)+12*REF(MID1,8)+11*REF(MID1,9)+10*REF(MID1,10)+9*REF(MID1,11)+8*REF(MID1,12)+7*REF(MID1,13)+6*REF(MID1,14)+5*REF(MID1,15)+4*REF(MID1,16)+3*REF(MID1,17)+2*REF(MID1,18)+REF(MID1,20))/210,COLORGREEN{COLORRED};
    马线:=MA(牛线,3),COLORMAGENTA{COLORYELLOW};
    GB:=(C-牛线);
    换手:=V*100/CAPITAL;
    主:=MA(换手,5);
    大:=MA(换手,12);
    中:=MA(换手,34);
    散:=MA(换手,55);
    均:=(主+大+中+散)/4;
    GBB:=(主-散);
    GB1:=GB+GBB;
    STICKLINE(GB1>=0,2.5,4,4,0),COLORRED{COLORRED},LINETHICK2;
    STICKLINE(GB1<0,2.5,4,4,0),COLOR008000{COLORGREEN},LINETHICK2;
    AA:=MAX(MA(C,60),MA(C,120));
    BB:=MIN(MA(C,60),MA(C,120));
    成交量:=V,COLORWHITE,LINETHICK0;
    Q:=EMA(V,5);
    Q1:=EMA(V,50);
    obv:=SUM(IF(CLOSE>REF(CLOSE,1),vol,IF(CLOSE OBV1:=EMA(OBV,5);
    OBV2:=EMA(OBV,50);
    W:=(Q-Q1)*0.00001;
    W1:=(OBV1-OBV2)*0.000001;
    W2:=W+W1;
    STICKLINE(W2>=0,0.3,1.8,4,0),COLORRED{COLOR017700},LINETHICK2;
    STICKLINE(W2<0,0.3,1.8,4,0),COLOR008000{COLORGREEN},LINETHICK2;
    J:=MAX(MA(C,30),MA(C,60));
    K:=MIN(MA(C,30),MA(C,60));
    MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
    DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
    16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
    13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
    10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
    7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
    4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
    MADKX:=MA(DKX,6);
    MDD:=(DKX-MADKX)*1.2;
    V1:=(C*2+H+L)/4*10;
    V2:=EMA(V1,6)-EMA(V1,55);
    V3:=EMA(V2,6);
    V4:=2*(V2-V3)*5.5;
    V5:=(V2-V3)*0.06;
    V6:=MDD+V5;
    STICKLINE(V6>=0,-4.1,-2.6,4,0),COLORRED{COLOR017700},LINETHICK2;
    STICKLINE(V6<0,-4.1,-2.6,4,0),COLOR008000{COLORGREEN},LINETHICK2;
    散户:(GB1),COLORWHITE,NODRAW;
    游资:(W2),COLORWHITE,NODRAW;
    机构:(C-牛线1),COLORYELLOW,NODRAW;
    主力:(V6),COLORRED,NODRAW;
    主力共量:机构+主力,COLORCYAN,NODRAW;
    N:=15;
    SAT1:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*4>4,4,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*4);
    STICKLINE(((SAT1>=4)AND BARSCOUNT(C)),0,(0+SAT1),1.2,0),COLORYELLOW;
    能量饱和度:SAT1,LINETHICK1,COLORYELLOW,LINETHICK1;
    {数字显示}
    DRAWTEXT(ISLASTBAR=1,IF(V>=0,3.2,0),VAR2STR(散户,2)),COLORWHITE;
    DRAWTEXT(ISLASTBAR=1,IF(V>=0,1,0),VAR2STR(游资,2)),COLORWHITE;
    DRAWTEXT(ISLASTBAR=1,IF(V>=0,-1,-0.4),VAR2STR(机构,2)),COLORWHITE;
    DRAWTEXT(ISLASTBAR=1,IF(V>=0,-3.4,0),VAR2STR(主力,2)),COLORWHITE;
    {数字显示};


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信四量图+量能饱和度指标公式 加入收藏