21评论

0收藏

我们不知不觉中被忽悠了

avatar 杨超333 | 4691 人阅读 | 21 人评论 | 2011-11-18

所有使用MT4软件里的macd指标的朋友可能都被忽悠了
  macd的源码如下:
  #property  indicator_separate_window
  #property  indicator_buffers 2
  #property  indicator_color1  Silver
  #property  indicator_color2  Red
  #property  indicator_width1  2
  //---- indicator parameters
  extern int FastEMA=12;
  extern int SlowEMA=26;
  extern int SignalSMA=9;
  //---- indicator buffers
  double     MacdBuffer[];
  double     SignalBuffer[];
  
  //+------------------------------------------------------------------+
  //| Custom indicator initialization function                         |
  //+------------------------------------------------------------------+
  int init()
    {
  //---- drawing settings
     SetIndexStyle(0,DRAW_HISTOGRAM);
     SetIndexStyle(1,DRAW_LINE);
     SetIndexDrawBegin(1,SignalSMA);
     IndicatorDigits(Digits+1);
  //---- indicator buffers mapping
     SetIndexBuffer(0,MacdBuffer);
     SetIndexBuffer(1,SignalBuffer);
  //---- name for DataWindow and indicator subwindow label
     IndicatorShortName(\"MACD(\"+FastEMA+\",\"+SlowEMA+\",\"+SignalSMA+\")\");
     SetIndexLabel(0,\"MACD\");
     SetIndexLabel(1,\"Signal\");
  //---- initialization done
     return(0);
    }
  //+------------------------------------------------------------------+
  //| Moving Averages Convergence/Divergence                           |
  //+------------------------------------------------------------------+
  int start()
    {
     int limit;
     int counted_bars=IndicatorCounted();
  //---- last counted bar will be recounted
     if(counted_bars>0) counted_bars--;
     limit=Bars-counted_bars;
  //---- macd counted in the 1-st buffer
     for(int i=0; i
""
还没有人打赏,支持一下

评论|共 21 个

tianxiahui578

发表于 2012-11-21 23:00:23 | 显示全部楼层

真是天底下好事多多  

1000美金

发表于 2012-11-22 00:05:51 | 显示全部楼层

太棒了!  

知足常乐

发表于 2012-11-22 00:05:51 | 显示全部楼层

我来看看!谢谢  

秀色可餐

发表于 2012-11-22 00:05:51 | 显示全部楼层

帮顶  

dqrhteny

发表于 2012-11-22 00:05:51 | 显示全部楼层

厉害!强~~~~没的说了!  

xmuwqh

发表于 2012-11-22 00:05:51 | 显示全部楼层

找个老师学习EA  

坑爹的外汇

发表于 2012-11-22 00:05:51 | 显示全部楼层

呵呵 那就好好玩吧~~~~  

vivi

发表于 2012-11-22 00:05:51 | 显示全部楼层

哎 怎么说那~~  

果果

发表于 2015-1-12 22:20:46 | 显示全部楼层


呵呵

123下一页
您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则