最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • MACD顶底背离(源码,图)

    正文概述    2024-04-07 23:02:52  

    {input:long(26,20,100),short(12,5,40),m(9,2,60)}
    DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
    DEA: EMA(DIFF,M);
    MACD : 2*(DIFF-DEA), COLORSTICK;
    A44:=BARSLAST(ref(cross(DIFF,dea),1));
    B11:=ref(c,A44+1) c and ref(DIFF,A44+1) difF and cross(DIFF,dea);
    DRAWTEXT(FILTER(B11 0,5),difF,'底背离'),COLORyellow;
    AA44:=BARSLAST(ref(cross(dea,DIFF),1));
    BB11:=ref(c,AA44+1) c and ref(dea,AA44+1) dea and cross(dea,DIFF);
    DRAWTEXT(FILTER(BB11 0,5),difF,'顶背离'),COLORyellow;
    STICKLINE(MACD =0 AND MACD =REF(MACD,1),0,MACD,2,0),COLORRED;
    STICKLINE(MACD =0 AND MACD REF(MACD,1),0,MACD,2,0),COLORff9900;
    STICKLINE(MACD 0 AND MACD =REF(MACD,1),0,MACD,2,0),COLORYELLOW;
    STICKLINE(MACD 0 AND MACD REF(MACD,1),0,MACD,2,0),COLORFFFF00;
    多空绝对:0,LINETHICK1,color00aaaa;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » MACD顶底背离(源码,图) 加入收藏