最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 博弈大师MACD背离指标加变色

    正文概述    2024-04-14 15:13:18  

    DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:EMA(DIFF,9),LINETHICK1,COLORFFFF00; {QDIF:IF(DEA,DIF,0),COLORRED,LINETHICK2;}
    QDIF:DIFF,COLORRED,LINETHICK2; D:=BACKSET(DIFF {RDIF:IF(D ,DIF,0),COLOR33FF33,LINETHICK2;}
    PARTLINE(D,DIFF),COLOR33FF33,LINETHICK2;
    MACD:(DIFF-DEA)*2;
    STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLORRED;
    STICKLINE(MACD>=0 AND MACD<=REF(MACD,1),0,MACD,0,0),COLORGREEN;
    STICKLINE(MACD<=0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLORFF00FF;
    STICKLINE(MACD<=0 AND MACD<=REF(MACD,1),0,MACD,0,0),COLOR00FFFF;
    多转空:=((((LLV(MACD,4)>0) AND (MACDREF(MACD,2))) AND (REF(MACD,2)>REF(MACD,3)));
    空转多:=((((HHV(MACD,4)<0) AND (MACD>REF(MACD,1))) AND (REF(MACD,1) DRAWICON(多转空,MACD*1.002,5);
    DRAWICON(空转多,MACD*0.998,4);

    {DRAWGBK(1,COLORRGB(0,0,30),COLORRGB(0,0,100),1);}

    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1) DRAWTEXT(IF(B1>0,1,0),DEA,'底背离');
    C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    D1:=REF(C,C1+1)DIFF AND CROSS(DEA,DIFF);
    DRAWTEXT(IF(D1>0,1,0),DEA,'顶背离');


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 博弈大师MACD背离指标加变色 加入收藏