possible bug

I am getting false in the alert output of this code where I am expecting true.

Can some body please tell me if I am wrong?


[CODE]

      MqlRates myRates[]

      
int copied=CopyRates(_symbol, _period, 0, bar_count, myRates);
      
ArraySetAsSeries(myRates, true);
      if(
copied<=0)
         Print(
"Error copying price data ",GetLastError());
      else 
      {
         
Alert("Copied ",ArraySize(myRates)," bars");
         
Alert(PeriodSeconds() + "  " + ArrayIsSeries(myRates)); 



[/CODE]

Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / History Data Structure
  • www.mql5.com
Standard Constants, Enumerations and Structures / Data Structures / History Data Structure - Documentation on MQL5
You should use ArrayGetAsSeries instead of ArrayIsSeries
Documentation on MQL5: Array Functions / ArrayGetAsSeries
  • www.mql5.com
Array Functions / ArrayGetAsSeries - Documentation on MQL5