华尔街回来的 发表于 2011-12-9 16:38:54

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

最近编了个自已的指标,在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

lljia 发表于 2012-11-22 00:28:10

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

相亲 发表于 2012-11-22 00:28:10

i love you

EA定制 发表于 2012-11-22 00:28:10

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

爻爻 发表于 2012-11-22 00:28:10

操盘做单还是要靠自己

盛满我的思念 发表于 2012-11-22 00:28:10

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

rainmaker 发表于 2012-11-22 00:28:10

没人理我。。。。

q543777345 发表于 2012-11-22 00:28:10

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

小西点金 发表于 2012-11-22 00:28:10

很棒的 EA

sacrifice 发表于 2012-11-22 00:28:10

EA真的不靠谱..。

.
页: [1] 2 3
查看完整版本: 求教一个自己编的指标在主图上为何无法显示??