您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

macd问题 [文华财经]

  • 咨询内容:  这个公式:DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA  : EMA(DIFF,M);//2*(DIFF-DEA),COLORSTICK;DRAWCOLORLINE(DIFF>=REF(DIFF,1),DIFF,COLORRED,COLORGREEN),LINETHICK1;DRAWCOLORLINE(DEA>=REF(DEA,1),DEA,COLORRED,COLORGREEN),LINETHICK1;MACD:=2*(DIFF-DEA);//DIFF减DEA的2倍画柱状线STICKLINE1(MACD>0&&MACD>REF(MACD,1),0,MACD,0.5,1),COLORRED;STICKLINE1(MACD>0&&MACD<REF(MACD,1),0,MACD,0.5,1),COLORGREEN;STICKLINE1(MACD<0&&MACD<REF(MACD,1),0,MACD,0.5,1),COLORGREEN;STICKLINE1(MACD<0&&MACD>REF(MACD,1),0,MACD,0.5,1),COLORWHITE;看着很直观,但为什么不能显示macd值了?求老师帮忙将macd值显示出来。

     

  • 文华技术人员:   DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA  : EMA(DIFF,M); //2*(DIFF-DEA),COLORSTICK; DRAWCOLORLINE(DIFF>=REF(DIFF,1),DIFF,COLORRED,COLORGREEN),LINETHICK1; DRAWCOLORLINE(DEA>=REF(DEA,1),DEA,COLORRED,COLORGREEN),LINETHICK1; MACD:2*(DIFF-DEA);//DIFF减DEA的2倍画柱状线 STICKLINE1(MACD>0&&MACD>REF(MACD,1),0,MACD,0.5,1),COLORRED; STICKLINE1(MACD>0&&MACD<REF(MACD,1),0,MACD,0.5,1),COLORGREEN; STICKLINE1(MACD<0&&MACD<REF(MACD,1),0,MACD,0.5,1),COLORGREEN; STICKLINE1(MACD<0&&MACD>REF(MACD,1),0,MACD,0.5,1),COLORWHITE; 仅供参考   以上编写会显示出MACD指标线和返回值

     

  • 文华客服:  能把返回线取消吗?看着不习惯呢

     

  • 网友回复: DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA  : EMA(DIFF,M); //2*(DIFF-DEA),COLORSTICK; DRAWCOLORLINE(DIFF>=REF(DIFF,1),DIFF,COLORRED,COLORGREEN),LINETHICK1; DRAWCOLORLINE(DEA>=REF(DEA,1),DEA,COLORRED,COLORGREEN),LINETHICK1; MACD:2*(DIFF-DEA),NODRAW;//DIFF减DEA的2倍画柱状线 STICKLINE1(MACD>0&&MACD>REF(MACD,1),0,MACD,0.5,1),COLORRED; STICKLINE1(MACD>0&&MACD<REF(MACD,1),0,MACD,0.5,1),COLORGREEN; STICKLINE1(MACD<0&&MACD<REF(MACD,1),0,MACD,0.5,1),COLORGREEN; STICKLINE1(MACD<0&&MACD>REF(MACD,1),0,MACD,0.5,1),COLORWHITE;   仅供参考  您试下以上效果  不显示MACD画线 但可以在左上角显示MACD返回值

     

  • 网友回复:  能不能将macd的返回值大于10时,柱状线变粗。?

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容