請問這個有什麼不對的?

 

請問這個有什麼不對的?

//+------------------------------------------------------------------+
//|                                                      MAcross.mq4 |
//|                        Copyright 2018, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2018, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
#property indicator_chart_window
#property indicator_buffers 4
#property indicator_plots   4
//--- plot Label1
#property indicator_label1  "Label1"
#property indicator_type1   DRAW_LINE
#property indicator_color1  clrBrown
#property indicator_style1  STYLE_SOLID
#property indicator_width1  1
//--- plot Label2
#property indicator_label2  "Label2"
#property indicator_type2   DRAW_LINE
#property indicator_color2  clrDarkSlateBlue
#property indicator_style2  STYLE_SOLID
#property indicator_width2  1
//--- plot Label3
#property indicator_label3  "Label3"
#property indicator_type3   DRAW_ARROW
#property indicator_color3  clrGreen
#property indicator_style3  STYLE_SOLID
#property indicator_width3  1
//--- plot Label4
#property indicator_label4  "Label4"
#property indicator_type4   DRAW_ARROW
#property indicator_color4  clrBlack
#property indicator_style4  STYLE_SOLID
#property indicator_width4  1
//--- input parameters
input int      bigMA=10;
input int      smallMA=5;
//--- indicator buffers
double         Label1Buffer[];
double         Label2Buffer[];
double         Label3Buffer[];
double         Label4Buffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- indicator buffers mapping
   SetIndexBuffer(0,Label1Buffer);
   SetIndexBuffer(1,Label2Buffer);
   SetIndexBuffer(2,Label3Buffer);
   SetIndexBuffer(3,Label4Buffer);
//--- setting a code from the Wingdings charset as the property of PLOT_ARROW
   PlotIndexSetInteger(2,PLOT_ARROW,159);
   PlotIndexSetInteger(3,PLOT_ARROW,159);
   
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
//---
   
//--- return value of prev_calculated for next call
   return(rates_total);
  }
  
  int start()
  {
  int counted_bars=IndicatorCounted();
  if(counted_bars<0)return(-1);
  if(counted_bars>0)counted_bars--;
  int limit=Bars-counted_bars;
  for(int i=0;i<limit;i++)
  {
  {double MAbig=iMA(NULL,0,bigMA,0,MODE_SMA,PRICE_CLOSE,i);
  double MAsmall=iMA(NULL,0,smallMA,0,MODE_SMA,PRICE_CLOSE,i);
  
  Label1Buffer[i]=MAbig;
  Label2Buffer[i]=MAsmall;
  }
  double MAbigp=iMA(NULL,0,bigMA,0,MODE_SMA,PRICE_CLOSE,i+1);
  double MAsmallp=iMA(NULL,0,smallMA,0,MODE_SMA,PRICE_CLOSE,i+1);
  
  if((MAbigp>MAsmallp)&&(MAbigp<MAsmallp))//
  {
   Label3Buffer[i]=Low[i]-100*Point;
   }
   {Label4Buffer[i]=High[i]+100*Point;
   }
  }
  return(0);
}
//+------------------------------------------------------------------+

錯誤'start' - function already defined and has body MAcross.mq4 82 7

請問應該怎樣的?
通过MQL5社区和服务探索MetaTrader 5的新机遇
通过MQL5社区和服务探索MetaTrader 5的新机遇
  • www.mql5.com
Next Update is 2019/01/06 (Every Month) Ninja Route MT5 is a combination of numerous strategies that develop during long processes of machine learning using historical data of major currency pairs. Each strategy involves a unique set of sophisticated price actions that optimized to manage decision under various conditions of the market...
 
yip keith:

請問這個有什麼不對的?

錯誤'start' - function already defined and has body MAcross.mq4 82 7

請問應該怎樣的?
把start里的内容剪切粘贴到oncalculate里边去,start是脚本用的
原因: