最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • MACD在0轴之下时把K线显示空心无色状态

    正文概述    2024-04-14 08:36:21  

    九毛八公式指标

    公式模块:

    下面源码中当macd在0轴之下时把k线显示空心无色状态怎么表示?
    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIF,9);
    STICKLINE(DIF>0 AND DEA>0 AND C>O,O,C,3,0),COLORRED;
    STICKLINE(DIF>0 AND DEA>0 AND C>O,H,L,0,0),COLORRED;
    STICKLINE(DIF>0 AND DEA>0 AND C<O,O,C,3,0),COLORGREEN;
    STICKLINE(DIF>0 AND DEA>0 AND C<O,H,L,0,0),COLORGREEN;
    STICKLINE(DIF<0 AND DEA<0 AND C>O,O,C,3,0),COLORMAGENTA;
    STICKLINE(DIF<0 AND DEA<0 AND C>O,H,L,0,0),COLORMAGENTA;
    STICKLINE(DIF<0 AND DEA<0 AND C<O,O,C,3,0),COLORBLUE;
    STICKLINE(DIF<0 AND DEA<0 AND C<O,H,L,0,0),COLORBLUE; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIF,9);
    STICKLINE(DIF>0 AND DEA>0 AND C>O,O,C,3,0),COLORRED;
    STICKLINE(DIF>0 AND DEA>0 AND C>O,H,L,0,0),COLORRED;
    STICKLINE(DIF>0 AND DEA>0 AND C<O,O,C,3,0),COLORGREEN;
    STICKLINE(DIF>0 AND DEA>0 AND C<O,H,L,0,0),COLORGREEN;
    STICKLINE(DIF<0 AND DEA<0 AND C>O,O,C,3,1),COLORBROWN;
    STICKLINE(DIF<0 AND DEA<0 AND C>O,H,L,0,0),COLORBROWN;
    STICKLINE(DIF<0 AND DEA<0 AND C<O,O,C,3,1),COLORBROWN;
    STICKLINE(DIF<0 AND DEA<0 AND C<O,H,L,0,0),COLORBROWN;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » MACD在0轴之下时把K线显示空心无色状态 加入收藏