UPDATE: My fault, wrong assumptions: I was not aware that some pairs can have gaps. 100 day-bars back from now (2019.01.04) will be the day 2018.08.16 in 27 currency pairs, but in NZDCAD it is 2018.09.05.
Same issue, I use CopyRates by index. It doesn't work reliable on the daily timeframe. No issue on lower timeframes. Code at my GitHub account (peterthomet).
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
UPDATE: My fault, wrong assumptions: I was not aware that some pairs can have gaps. 100 day-bars back from now (2019.01.04) will be the day 2018.08.16 in 27 currency pairs, but in NZDCAD it is 2018.09.05.
Same issue, I use CopyRates by index. It doesn't work reliable on the daily timeframe. No issue on lower timeframes. Code at my GitHub account (peterthomet).
Hi,
as workaround I'm currently using a function that compute the daily bars from the hourly bars and it seems that it works well.