Download MetaTrader 5

possible bug

To add comments, please log in or register
samjesse
205
samjesse  
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_period0bar_countmyRates);
      
ArraySetAsSeries(myRatestrue);
      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
Ilyas
1213
Ilyas  
You should use ArrayGetAsSeries instead of ArrayIsSeries
Documentation on MQL5: Array Functions / ArrayGetAsSeries
  • www.mql5.com
Array Functions / ArrayGetAsSeries - Documentation on MQL5
To add comments, please log in or register