• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【股票入门】【通达信】小鱼MACD指标公式

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

    SHORT:=12;
    LONG:=26;
    MID:=9;
    DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
    DEA:EMA(DIF,MID),COLOR888888;
    {NOTEXT1:IF(DIF>-0.4, DIF,DRAWNULL),COLORRED;
    NOTEXT2:IF(DIF>0 AND DIF0,0.5*DIF,0,2,0),COLORRED;
    STICKLINE(DT1>0,0.5*DIF,0,2,0),COLOR00FF00;
    MACD:(DIF-DEA)*2,COLORSTICK;
    STICKLINE(MACD0, 0,MACD,0,0),COLOR44FF00;
    STICKLINE(MACD>REF(MACD,1) AND MACDREF(E1,1);
    A2:=REF(DIF,M2)=LLV(DIF,2*M2+1);
    B2:=FILTER(A2,M2);
    C2:=BACKSET(B2,M2+1);
    D2:=FILTER(C2,M2);
    E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
    F2:=E2>REF(E2,1);
    压力线:DRAWLINE(D1,DIF,F1,DIF,0),COLORFFFF00,DOTLINE;
    支撑线:DRAWLINE(D2,DIF,F2,DIF,0),COLOR00AAFF,DOTLINE;
    G3:=FILTERX(支撑线>REF(支撑线,1) && DIF>支撑线 && REF(支撑线,1)=REF(DIF,1),2);
    底抬高:DRAWLINE(D2,DIF,G3,支撑线,0),COLORYELLOW,DOTLINE;
    {画趋势线}
    M:=INTPART(3*10/5);
    A12:=REF(DIF,M)=HHV(DIF,2*M+1);
    B12:=FILTER(A12,M);
    C12:=BACKSET(B12,M+1);
    D12:=FILTER(C12,M);
    R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1);
    S112:=R112>REF(R112,1);
    AL12:=REF(DIF,M)=LLV(DIF,2*M+1);
    BL12:=FILTER(AL12,M);
    CL12:=BACKSET(BL12,M+1);
    DL12:=FILTER(CL12,M);
    RL112:=BACKSET(ISLASTBAR,BARSLAST(DL12)+1);
    SL112:=RL112>REF(RL112,1);
    短压线:DRAWLINE(D12,DIF,S112,DIF,0),COLOR99FF00,DOTLINE;
    短撑线:DRAWLINE(DL12,DIF,SL112,DIF,0),COLOR0055FF,DOTLINE;
    VARX2:=LLV(DEA,43);
    VARX3:=DEA-(DIF-DEA);
    低点线:=IF(DIFCLOSE AND REF(DIF3_6.5F,AX2+1)0)+1);
    VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);
    前低:=DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1);
    BD:=BARSLAST(FILTERX(CROSS(0,MACD),BARSCOUNT(C)));
    BDTJ:=IF(MACD0)),
    BARSCOUNT(C)),DRAWNULL);
    TSBDTJ:=BARSLAST(BDTJ);
    BDZH:=FILTERX(MACD=1,CONST(LLV(MACD,BD+1)),DRAWNULL);
    BDCL:=CROSS(COUNT(CROSS(MACD>本低/2 AND MACD=0;
    终点:=IF(ISLASTBAR AND MACD>0 AND MACD=HHV(MACD,BARSLAST(MACD0;
    ZZ:=FILTERX(UU,BARSCOUNT(C));
    本高:=DRAWLINE(ZZ,MACD,REF(ZZ,1),REF(MACD,1),1),COLORWHITE;
    WQG:=CROSS(COUNT(CROSS(MACD0,0.5),ZZ)=1,0.5) AND ZZ>=0;
    STICKLINE(MACD>前高,MACD,前高,0,0),COLORFFFFFF;
    STICKLINE(MACD

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

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

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

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