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

    正文概述    2024-04-13 20:53:17  

    DIF:EMA(CLOSE,5)-EMA(CLOSE,11);
     DEA:EMA(DIF,5);
     MACD:(DIF-DEA)*2,COLORSTICK;
     IF(DIF  IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
     A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
     B1:=REF(C,A1+1)> C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS

    ("MACD.DIF","MACD.DEA");
     DRAWICON(B1>0,DIF*1.21,1);{底背离}
    C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
     D1:=REF(C,C1+1) "MACD.DIF" AND CROSS

    ("MACD.DEA","MACD.DIF");
     DRAWICON(D1>0,DEA*1.21,2);{顶背离};
    DRAWICON(CROSS(MACD,0),0,1);
     DRAWICON(CROSS(0,MACD),0.2,2);
     DRAWICON(CROSS(DIF,DEA),DIF,1),COLORRED;
     DRAWICON(CROSS(DEA,DIF),DEA,2),COLORGREEN;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 整合的MACD副图源码 加入收藏