📅 财经日历 📊 实时波动 📈 大盘云图 📶 行情走势 🆚 投机情绪 🚀 今日热点

    求教一个自己编的指标在主图上为何无法显示??

    2011-12-09 · 10037 阅读
    最近编了个自已的指标,在MetaEditor里测试很正常,但就是在MT4里却无论如何也显示不了。请各位高人看一下是什么地方出错了,谢了!!!
      
      //+------------------------------------------------------------------+
      //|                                                   chen\'s avg.mq4 |
      //|                                                  stephen chen    |
      //|                                                                  |
      //+------------------------------------------------------------------+
      #property copyright \"stephen chen\"
      
      
      #property indicator_chart_window
      #property indicator_buffers 1
      #property indicator_color1 MediumSpringGreen
      //---- indicator parameters所选择的均线周期为MC_Period
      extern int MC_Period=10;
      
      //---- buffers
      double MCMapBuffer1[];
      //+------------------------------------------------------------------+
      //| Custom indicator initialization function                         |
      //+------------------------------------------------------------------+
      int init()
        {
      //---- indicators
         SetIndexStyle(0,DRAW_LINE);
         SetIndexBuffer(0,MCMapBuffer1);
         IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));
         IndicatorShortName(\"chen\'s avg\");
      //----
         return(0);
        }
      //+------------------------------------------------------------------+
      //| Custom indicator deinitialization function                       |
      //+------------------------------------------------------------------+
      //int deinit()
        //{
      //----
         
      //----
         //return(0);
        //}
      //+------------------------------------------------------------------+
      //| Custom indicator iteration function                              |
      //+------------------------------------------------------------------+
      int start()
        {
         int limit;
         int counted_bars=IndicatorCounted();
         int k ;
         double quan[];
         double jia_lian[];
      //---- last counted bar will be recounted
         if(counted_bars>0) counted_bars--;
         limit=Bars-counted_bars-MC_Period;
      //----
         for(int i=0; i
    ""
    还没有人打赏,支持一下
    回复

    举报

     

    回答|共 26 个

    lljia LV4

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

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

    相亲 LV5

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

    i love you

    EA定制 LV6

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

    看或者不看,贴子就在这里,不急不忙  

    爻爻 LV5

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

    操盘做单还是要靠自己  

    盛满我的思念 LV5

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

    这个不可信,没有保险的保赚钱的软件   

    rainmaker LV6

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

    没人理我。。。。  

    q543777345 LV5

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

    请发一个试试,谢谢!RongYuanQiong@163.com 。。。  

    小西点金 LV6

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

    很棒的 EA  

    sacrifice LV5

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

    EA真的不靠谱..。

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

    提醒: 禁止引战、谩骂、灌水内容

    微信二维码

    有问题联系客服