You should use ArrayGetAsSeries instead of ArrayIsSeries
Documentation on MQL5: Array Functions / ArrayGetAsSeries
- www.mql5.com
Array Functions / ArrayGetAsSeries - Documentation on MQL5
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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]