• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【配资炒股】【通达信】MACD精确背离指标公式

    发布时间: 2020-04-07 14:03 首页:股票一点通>股票公式>通达信公式> 阅读()

    SHORT:=12;
    LONG:=26;
    MID:=9;
    DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
    DEA:EMA(DIFF,MID);
    MACD:(DIFF-DEA)*2,COLORFFFF00,COLORSTICK;
    A1:=BARSLAST(REF(CROSS(0, DEA),1));
    A2:= BARSLAST(REF(COUNT(DEA=1 AND COUNT(DEA =1,A2+1)>=1 AND COUNT(DEA =0,B1+1)=B1+1 AND HHV(DIFF,5)=HHV(DIFF,A1+1) AND CROSS(DEA,DIFF),1));
    B3:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    死叉:=IF(CROSS(DEA,DIFF) AND DEA>=0,0,DEA),COLORFFFF00;
    高位多次死叉:IF(CROSS(DEA,DIFF) AND COUNT(B2>=1,B2+1)>=1 AND REF(COUNT(DEA >=0,B2+1)=B2+1,1),0,DEA),COLORFFFF00;
    DINGBL1:= HHV(CLOSE,B3+1)=HHV(CLOSE,B1+1) AND NOT(HHV(DIFF,B3+1)=HHV(DIFF,B1+1)) AND CROSS(DEA,DIFF) AND COUNT(B2>=1,B2+1)>=1 AND COUNT(DEA >=0,B2+1)=B2+1;
    顶背离:=IF(DINGBL1,0,DEA);
    DRAWLINE(B2=0,DEA,DINGBL1,DEA,0),COLOR00FF00,LINETHICK3;
    STICKLINE(DIFF>DEA,MACD,0,1,0),COLORRED;
    STICKLINE(DEA>DIFF,MACD,0,1,0),COLORFFFF00;

    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页-股票知识--股票公式-散户炒股-问答百科--缠中说禅-概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map