最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 金牛上涨指标公式 金牛趋势指标

    正文概述    2024-05-04 04:06:19  



    通达信指标公式源码概况:


    指标类别: 通达信指标公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图


    金牛上涨指标公式


    DIFF:EMA(CLOSE,6)-EMA(CLOSE,16),ColorFFFF26;

    DEA:EMA(DIFF,5),Color8A15FF;

    MACD:=2*(DIFF-DEA);

    对DIFF :0-(EMA(CLOSE,6) - EMA(CLOSE,16));

    对DEA :0-(EMA(DIFF,5));

    对称 : 0-(2*(DIFF-DEA)),STICK,ColorFF6060,LINETHICK1;

    {D1:EMA(C,16)-EMA(C,6),Color26FF26;

    E2:EMA(D1,5),ColorFF1EFF;};

    STICKLINE(MACD=0,MACD,0,4,1),COLORF00FF0;

    STICKLINE(MACD0,MACD,0,4,1),colorwhite;

    STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,10,0 ),Color00C4C4;

    STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,6.3,0 ),Color00EAEA;

    STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,2.2,0 ),Color0BFFFF;

    STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,1.65,0 ),Color46FFFF;

    STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,8 ,0 ),Color0000BB;

    STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,6.3 ,0 ),Color0000F0;

    STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,2.2,0 ),Color1111FF;

    STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,1.65 ,0 ),Color3535FF;

    STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,10,0 ),Color9B009B;

    STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,6.3 ,0 ),ColorCA00CA;

    STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,2.2,0 ),ColorF000F0;

    STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,1.65,0 ),ColorFF28FF;

    STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,8,0 ),Color00AA00;

    STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,6.3 ,0 ),Color00CE00;

    STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,2.2,0 ),Color00F700;

    STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,1.65 ,0 ),Color2DFF2D;

    低位:=CROSS(DIFF,DEA) AND DIFF-0.1;

    STICKLINE(低位金叉,0,-0.18,10,0),ColorE8E8E8;

    STICKLINE(低位金叉,0,-0.18,4,0),ColorF2F2F2;

    STICKLINE(低位金叉,0,-0.18,2,0),ColorFFFFFF;

    DRAWTEXT(低位金叉,-0.2, 金叉 ),ColorFFFFFF;

    JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA=0));

    二次金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=2,21)=1;

    STICKLINE(二次金叉,0,-0.18,10,0),Color0042CC;

    STICKLINE(二次金叉,0,-0.18,8,0),Color004FF2;

    STICKLINE(二次金叉,0,-0.18,8,0),Color3375FF;

    DRAWTEXT(二次金叉,-0.2, 金叉二 ),Color3375FF;

    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

    底:=REF(CLOSE,A1+1)CLOSE AND DIFFREF(DIFF,A1+1) AND CROSS(DIFF,DEA);

    STICKLINE(底背离,0,0.13,10,0),ColorCECE00;

    STICKLINE(底背离,0,0.13,4,0),ColorFFFF00;

    STICKLINE(底背离,0,0.13,2,0),ColorFFFF44;

    DRAWLINE(A1=0,DEA,底背离,DEA,0),ColorFFFFFF,linethick1;

    DRAWTEXT(底背离,0.3, 底背离 ),ColorFFFF26;

    A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));

    顶背离:=REF(CLOSE,A2+1)CLOSE AND REF(DIFF,A2+1)DIFF AND CROSS(DEA,DIFF);

    DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen,linethick1;

    箱顶: HHV(MA((LOW+HIGH+CLOSE+OPEN)/4,5),58),color00aaff;

    箱底: LLV(MA((LOW+HIGH+CLOSE+OPEN)/4,6),58),color00ff00;

    Var1:=EMA((HIGH+LOW+CLOSE)/3*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*20/10+箱底,2);

    Var2:=(3*Var1-2*SMA(Var1,5,1))*0.3;

    Var3:=(HHV(INDEXH,13)-INDEXC)/(HHV(INDEXH,13)-LLV(INDEXL,13));

    Var4:=EMA(3*Var3-2*SMA(Var3,18,1),5);

    Var5:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8));

    Var6:=3*SMA(Var5,3,1)-2*SMA(SMA(Var5,3,1),5,1);

    Var7:=(INDEXC*2+INDEXH+INDEXL)/4;

    Var8:=EMA(Var7,13)-EMA(Var7,34);

    Var9:=EMA(Var8,5);

    VarA:=(Var8-Var9+箱底)*1;

    VarB:=1.86*EMA(CLOSE,12)-EMA(CLOSE,34);

    力度: VarB,colorffaa99;

    VarC:=箱底;

    STICKLINE(C=O,C,O,7,0),colorred;

    STICKLINE(C=O,C,O,4,0),COLOR7070ff;

    STICKLINE(C=O,C,O,2,0),coloryellow;

    STICKLINE(C=O,H,L,0,0),coloryellow;

    STICKLINE(C=O,C,O,7,0),COLORFF2020;

    STICKLINE(C=O,C,O,4,0),COLORFF6600;

    STICKLINE(C=O,C,O,2,0),colorffcc66;

    STICKLINE(C=O,H,L,0,0),colorffcc66;

    牛气冲天: STICKLINE(趋势力度=VarC,VarC,趋势力度,4,0),colorred;

    STICKLINE(趋势力度=REF(趋势力度,1) AND 趋势力度VarC,VarC,趋势力度,4,1),colorwhite;

    趁机派发: STICKLINE(REF(趋势力度,2)REF(趋势力度,1) AND 趋势力度=REF(趋势力度,1) AND 趋势力度VarC,VarC,趋势力度,4,0),colorgreen;

    DRAWICON(REF(趋势力度,2)REF(趋势力度,1) AND 趋势力度=REF(趋势力度,1) AND 趋势力度VarC,趋势力度,2);

    熊气盖天: STICKLINE(趋势力度VarC-0.5,VarC-0.5,趋势力度,8,1),coloryellow;

    转强信号:STICKLINE(趋势力度REF(趋势力度,1) AND 趋势力度Varc-0.5,Varc-0.5,趋势力度,2,0),colorred;

    MA3: MA(CLOSE,3),coloryellow;

    MA34: MA(CLOSE,34),colorwhite;

    DRAWTEXT(CROSS(MA3,箱底),LOW*0.95, 试 ),colorffcc66;

    STICKLINE(CROSS(MA3,箱底),LOW*0.99,L*0.95,4,0),colorffcc66;

    DRAWTEXT(CROSS(MA3,MA34),LOW*0.95, 买 ),colorff00ff;

    STICKLINE(CROSS(MA3,MA34),LOW*0.99,L*0.95,4,0),colorff00ff;

    DRAWTEXT(CROSS(MA3,箱顶) AND CLOSE箱顶,箱顶*0.95, 追 ),coloryellow;

    STICKLINE(CROSS(MA3,箱顶) AND CLOSE箱顶,箱顶*0.99,箱顶*0.95,4,0),coloryellow;

    DRAWTEXT(CROSS(箱顶,MA3) AND CLOSE箱顶,HIGH*1.05, 卖 ),color00ff00;

    STICKLINE(CROSS(箱顶,MA3) AND CLOSE箱顶,HIGH*1.03,H*1.0,4,0),color00ff00;

    DRAWTEXT(REF(VarA,2)REF(VarA,1) AND REF(VarA,1)VarA AND VarA箱顶 AND CLOSE箱顶,HIGH*1.05, 顶 ),colorwhite;

    STICKLINE(REF(VarA,2)REF(VarA,1) AND REF(VarA,1)VarA AND VarA箱顶 AND CLOSE箱顶,HIGH*1.005,H*1.03,4,0),colorwhite;


    image.png


    金牛趋势指标


    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*10;

    K:SMA(RSV,3,1);

    D:SMA(K,3,1);

    J:3*K-2*D;

    2,COLORCC6633;5,COLOR996699;

    10,COLOR996699,LINETHICK1;

    VAR1:=C-REF(C,1);

    VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);

    MA5:=EMA(C,5);

    MA13:=EMA(C,13);

    UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS

    (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS

    (MA5,MA13))+1),0),COLOR0000FF;

    DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS

    (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS

    (MA13,MA5))+1),0),COLOR00FF00;

    BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR20,2) AND CROSS(VAR2,MA(VAR2,2))) AND

    REF(DOWN,1)REF(DOWN,2) AND UPREF(DOWN,1);

    STICKLINE(UP,0,0.2,3,0),COLOR0000FF;

    STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;

    STICKLINE(BT,0,3,2,0),COLOR000088;

    STICKLINE(BT,0,3,1,0),COLOR0000CC;

    STICKLINE(BT,0,3,0.22,0),COLOR0000FF;

    DRAWTEXT(BT,3, 短牛 ),COLOR0000FF;

    TJ1:=REF(DOWN,1)REF(DOWN,2) AND UPREF(DOWN,1) AND CHHV(H,21)*0.82;

    STICKLINE(TJ1,0,2,3,0),COLOR880088;

    STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;

    STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;

    STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;

    DRAWTEXT(TJ1,2, 中牛 ),COLORFF00FF;

    HR:=HHV(HIGH,55);

    HRY:=LLV(LOW,55);

    HRY11:=HR*HRY;

    HRY33:=SQRT(HRY11);

    TJ2:=REF(DOWN,1)REF(DOWN,2) AND UPREF(DOWN,1) AND CHRY33;

    STICKLINE(TJ2,0,1,5,0),COLOR008888;

    STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;

    STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;

    STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;

    DRAWTEXT(TJ2,1, 大牛 ),COLOR00FFFF;

    ST:=REF(UP,1)REF(UP,2) AND DOWNREF(UP,1);

    STICKLINE(ST,10,11.05,5,0),COLOR008800;

    STICKLINE(ST,10,11.05,2,0),COLOR00AA00;

    STICKLINE(ST,10,11.05,1,0),COLOR00CC00;

    STICKLINE(ST,10,11.05,0.2,0),COLOR00FF00;

    DRAWTEXT(ST,10.5, 卖 ),COLOR00FF00;

    VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;

    VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;

    VAR4:=EMA(VAR3,5);

    VAR5:=3*VAR3-2*VAR4;

    AA:=CROSS(VAR5,VAR3) AND VAR32.1 AND CO;

    VAR6:=(2*CLOSE+HIGH+LOW)/4;

    VAR7:=LLV(LOW,13);

    VAR8:=HHV(HIGH,13);

    VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);

    VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);

    S:VAR9,COLORRED,POINTDOT;

    STICKLINE(VAR9VARA,VAR9,VARA,2.6,0),COLOR77AAFF;

    STICKLINE(VAR9=VARA,VAR9,VARA,2.6,0),COLOR00FF00 ;

    DRAWTEXT(AA,12, 牛 ),COLORYELLOW;

    A1:10,COLORWHITE;

    A2:20,COLORRED;

    A3:50,POINTDOT,COLORYELLOW;

    A4:70,POINTDOT;

    A5:80,COLORRED;

    奔牛: EMA(0.382*REF(VAR9,2)+0.618*VAR9,6);

    IF(奔牛REF(奔牛,1),奔牛,DRAWNULL),COLORRED,LINETHICK2;

    IF(奔牛REF(奔牛,1),奔牛,DRAWNULL),COLORYELLOW,LINETHICK2;


    image.png




    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 金牛上涨指标公式 金牛趋势指标 加入收藏