1. 首页 > 基础知识

macd的三种指标背离源码(MACD柱线与K线背离指标源码)

macd的三种指标背离源码(MACD柱线与K线背离指标源码)

内容导航:
  • 求通达信中把MACD顶底背离信号叠加到分时主图上的公式源码
  • 有谁能给我编写个cci、macd、kdj三个指标共同底背离,通达信能用的选股公式,谢谢
  • macd指标背离选股公式?
  • 求指标编辑高手指导,MACD背离程序,思路如下:
  • 请高手编写个通达信的简单公式:MACD红绿柱子背离
  • 哪位老师有通达信MACD柱体背离的指标公式分享一个,真心感谢
  • macd 如何判断背离
  • Q1:求通达信中把MACD顶底背离信号叠加到分时主图上的公式源码

    顶背离,你要确定一下是,dif的背离,还是,dea线的背离,还是macd柱子高低的背离.
    提示方式是画线提示还是文字提示还是图标提示
    例如下图中的是划线提示的

    Q2:有谁能给我编写个cci、macd、kdj三个指标共同底背离,通达信能用的选股公式,谢谢

    底背离:REF(CLOSE,t+1)>CLOSE AND k>REF(k,t+1) AND CROSS(k,D); ...

    Q3:macd指标背离选股公式?

    觉得股市不是用公式的地方,有资金流入,有成交量就是好股,但是一定要在底部。

    Q4:求指标编辑高手指导,MACD背离程序,思路如下:

    DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);
    DEA:EMA(DIFF,9);
    MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
    低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
    STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;
    DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;
    JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
    二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
    STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
    DRAWICON(二次金叉,DEA*0.9,1) ;
    DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;
    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
    STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
    底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;
    DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;
    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,LINETHICK4;
    DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.25,'三全项'),COLOR0000FF,LINETHICK2;

    Q5:请高手编写个通达信的简单公式:MACD红绿柱子背离

    MACD顶底背离(同时包含KDJ背离,RSI背离)
    公式如下:
    DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
    DEA:EMA(DIFF,9);
    MACD:2*(DIFF-DEA),COLORSTICK;
    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
    A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
    B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
    A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
    B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
    C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
    C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
    D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
    C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
    D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
    MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;
    KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;
    RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;
    MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;
    KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;
    RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;
    STICKLINE(B1>0,-0.1,0,2,0),COLORRED;
    STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;
    STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;
    STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;
    STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;
    STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;

    Q6:哪位老师有通达信MACD柱体背离的指标公式分享一个,真心感谢

    偷懒,前一位弄的公式,给更正一下,其他内容纹丝没动。
    DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
    DEA:=EMA(DIFF,9);
    MACD:=2*(DIFF-DEA);
    DD:=C=HHV(C,180);
    EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
    CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
    FF:=C=LLV(C,180);
    GG:=DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
    LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
    底背离:(FF AND GG AND DEA> LLV(DEA,180))*DEA;

    Q7:macd 如何判断背离

    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIF,9);
    MACD:=(DIF-DEA)*2;
    背离是MACD与股价的发展方向是相对的,也可以说是背道而驰的。

    本文由锦鲤发布,不代表本站立场,转载联系作者并注明出处:/showinfo-1-26359-0.html