'CopyHigh' - no one of the overloads can be applied to the function call" problem

 

Hi all, i am trying to see highest candle of last 12 bar, there is a mistake i think and doesnt find the solution. 

When try to compile it says:  'CopyHigh' - no one of the overloads can be applied to the function call"

Any help ?

Thanks

void OnTick()
  {
 

  MqlRates PriceInformation[];
  ArraySetAsSeries(PriceInformation,true);
  int Data = CopyRates(_Symbol,_Period,0,120,PriceInformation);
  
  int HighestCandle;   //create variable for highest candle
  int High [];         //create an array for price data
  
  ArraySetAsSeries(High,true); //sort the array from current candle downwards
  CopyHigh(_Symbol,_Period,0,12,High); //fill the array with high prices
  HighestCandle = ArrayMaximum(High,0,12);
  
  // draw line to screen - en yuksek= highest candle
  ObjectCreate(_Symbol,"En yüksek", OBJ_HLINE,0,0,PriceInformation[HighestCandle].high); //set object properties for line
  ObjectSetInteger(0,"En yüksek",OBJPROP_COLOR,clrMagenta);    //color
  ObjectSetInteger(0,"En yüksek",OBJPROP_WIDTH,2);           //width
  ObjectMove(_Symbol,"En yüksek",0,0,PriceInformation[HighestCandle].high);  //move the object
  Comment(" En yüksek mum : ", HighestCandle,   "Highest price ", PriceInformation[HighestCandle].high); //
  }
//+------------------------------------------------------------------+
 

Perhaps you should read the manual. CopyHigh - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
   How To Ask Questions The Smart Way. (2004)
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

Your code
Documentation
  int High []; 
  CopyHigh(
_Symbol,
_Period,
0,
12,
High
);

int  CopyHigh(
   string           symbol_name,      // symbol name
   ENUM_TIMEFRAMES  timeframe,        // period
   int              start_pos,        // start position
   int              count,            // data count to copy
   double           high_array[]      // target array to copy
   );
 

I looked https://www.mql5.com/en/docs/series/copyhigh several time but you know sometimes eyes doesnt see.


Mr Roeder, thanks a lot. 

Documentation on MQL5: Timeseries and Indicators Access / CopyHigh
Documentation on MQL5: Timeseries and Indicators Access / CopyHigh
  • www.mql5.com
CopyHigh - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: