Download MetaTrader 5
To add comments, please log in or register
Does your signal already have a lot of of subscribers? It's time to think about the paid subscription!
samjesse
205
samjesse 2011.09.07 12:00 
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
1189
Ilyas 2011.09.07 12:05  
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