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

    正文概述    2024-04-13 11:44:35  

    SHORT取值12 LONG取值26 M取值9

    源码如下:
     

    DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorwhite;
    DEA : EMA(DIFF,M),coloryellow;
    MACD:2*(DIFF-DEA);

    STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;
    STICKLINE(MACD<0,MACD,0,4,1),colorwhite;
    STICKLINE(MACD0,0,MACD,8,0 ),Color00C4C4;
    STICKLINE(MACD0,0,MACD,6.3,0 ),Color00EAEA;
    STICKLINE(MACD0,0,MACD,2.2,0 ),Color0BFFFF;
    STICKLINE(MACD0,0,MACD,1.65,0 ),Color46FFFF;
    STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,8 ,0 ),Color0000BB;
    STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,6.3 ,0 ),Color0000F0;
    STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),Color1111FF;
    STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.65 ,0 ),Color3535FF;
    STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,8,0 ),Color9B009B;
    STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,6.3 ,0 ),ColorCA00CA;
    STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),ColorF000F0;
    STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.65,0 ),ColorFF28FF;
    STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,8,0 ),Color00AA00;
    STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,6.3 ,0 ),Color00CE00;
    STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),Color00F700;
    STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.65 ,0 ),Color2DFF2D;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 经典指标MACD彩色版公式(通用)源码 加入收藏