Error: 'NormalizeComponentValue' - unexpected token, probably type is missing?

 
//+------------------------------------------------------------------+
Indicator::NormalizeComponentValue(const double &componentValue[],const datetime &strategyTime[],double &output[],int ltfShift)
 
Post all relevant code. Most likely the problem is above the line indicated, or possibly the method declaration.
     How To Ask Questions The Smart Way. (2004)
          Be precise and informative about your problem
 

Hi William,

Sharing with you the file which has this error.

Files:
maeama.mq5  259 kb
 
Class definition: double{], datetime{], double[], and int.
 class Indicator
  {
protected:
   double            Sigma();
   double            Epsilon();
   void              NormalizeComponentValue(
        const double &componentValue[],
        const datetime &strategyTime[],
        double &output[],
        int ltfShift);
Call: double[], datetime[], double[], int.
      double value[];
      NormalizeComponentValue(
        Component[i].Value,
        strategyDataSet.Time,
        value,
        ltfShift);
You have a global function named Time.
datetime Time(string symbol,ENUM_TIMEFRAMES period,int bar)
You also have a member named Time.
class DataSet
⋮
    datetime   Time[];

I think you've confused the compiler.

 
harry.jh:

you forgot the returning type. examples are below...

void Indicator::NormalizeComponentValue(const double &componentValue[],const datetime &strategyTime[],double &output[],int ltfShift) {return;}
or
bool Indicator::NormalizeComponentValue(const double &componentValue[],const datetime &strategyTime[],double &output[],int ltfShift) {return true;}
 

got solved. Thanks all