最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 自己用的macd(带面积)

    正文概述    2024-04-08 00:25:41  
    DEF:2*(DIF-MACD),COLORFFFF00,LINETHICK0;
    STICKLINE(DEF =0 AND DEF =REF(DEF,1),0,DEF,2,1),COLORRED;
    STICKLINE(DEF =0 AND DEF REF(DEF,1),0,DEF,2,1),COLORred;
    STICKLINE(DEF 0 AND DEF =REF(DEF,1),0,DEF,2,1),COLORcyan;
    STICKLINE(DEF 0 AND DEF REF(DEF,1),0,DEF,2,1),COLORcyan;
    BV:=SUM(DEF,0);
    BA:=IF(MAX(BV,REF(BV,2)) REF(BV,1) OR MIN(BV,REF(BV,2)) REF(BV,1),1,0);
    BC:=BARSLAST(BA)+1;
    VAR3:=IF(DEF 0,HHV(ABS(DEF),bc),LLV(DEF,bc));
    VAR4:=(DEF)/20;
    VAR5:=BV-REF(BV,BC);
    DRAWNUMBER(REF(VAR4,1) 0 and VAR4 =0 ,REF(VAR3,1),REF(VAR5,1),0),coloryellow;
    DRAWNUMBER(REF(VAR4,1) 0 and VAR4 =0 ,REF(VAR3,1),REF(ABS(VAR5),1),0),colorwhite;
    DRAWNUMBER(ISLASTBAR and VAR4 0,REF(VAR3,1),ABS(VAR5),0),align2,colorwhite;
    DRAWNUMBER(ISLASTBAR and VAR4 0,REF(VAR3,1),VAR5,0),align2,coloryellow;
    M1:=REF(DEF,1);
    M2:= MACD-dif;
    绿柱面积:IF (DEF 0,SUM(DEF,BARSLAST(M2 0)),0),linethick0,colorblue;
    红柱面积:IF (DEF 0,SUM(DEF,BARSLAST(M2 0)),0),linethick0,colorred;



    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 自己用的macd(带面积) 加入收藏