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

    正文概述    2024-04-07 23:07:03  
    OBV:=SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),0);
    {参数设定}
    VARC:=IF(N=1,CCI,IF(N=2,RSI,IF(N=3,RSV,IF(N=4,BBI,IF(N=5,BIAS,IF(N=6,OBV,IF(N=7,VOL,IF(N=8,AMOUNT,C))))))));
    {九全MACD}
    DIFF:EMA(VARC,12)-EMA(VARC,26);
    DEA: EMA(DIFF,9);
    MACD: 2*(DIFF-DEA),COLORSTICK;
    {提示}
    IF N=1 THEN BEGIN
    DRAWTEXTREL(15,40,'CCI-MACD'),color00FF00;
    END;
    IF N=2 THEN BEGIN
    DRAWTEXTREL(15,40,'RSI-MACD'),color00FF00;
    END;
    IF N=3 THEN BEGIN
    DRAWTEXTREL(15,40,'RSV-MACD'),color00FF00;
    END;
    IF N=4 THEN BEGIN
    DRAWTEXTREL(15,40,'BBI-MACD'),color00FF00;
    END;
    {www.9m8.cn 九毛八公式指标网 股票软件下载网_最新股票指标公式}
    IF N=5 THEN BEGIN
    DRAWTEXTREL(15,40,'BIAS-MACD'),color00FF00;
    END;
    IF N=6 THEN BEGIN
    DRAWTEXTREL(15,40,'能量潮-MACD'),color00FF00;
    END;
    IF N=7 THEN BEGIN
    DRAWTEXTREL(15,40,'成交量-MACD'),color00FF00;
    END;
    IF N=8 THEN BEGIN
    DRAWTEXTREL(15,40,'成交额-MACD'),color00FF00;
    END;
    IF N=9 THEN BEGIN
    DRAWTEXTREL(15,40,'标准-MACD'),color00FF00;
    END;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 九全MACD指标 (源码) 加入收藏