- CopyTime only copy 1 rate?
- Bars() always returning zero.
- MT5 - Multi-Currency Indicator in Tester
Hi..!!
Not sure that your code is wrong. I just found a problem with the date routines when converting a program from MQL4 to MQL5. I am subtracting 1 day from a date by subtracting 60*60*24, which is the number of seconds in a day... Its not producing the correct output in MQL5, and it works fine in MQL4. Nevertheless, Iif you find out who to address on your issue please pm me.
Thanks....
Guillermo
Hi again..
I think you might be having the problem due to the missalignment of the Date fields: At least MQ4 was very picky about it: YYYY.MM.DD hh:mm. See if that works..
This error (any Copy... functions with arguments DateFrom, DateTo) has been already fixed. Please wait for the next build.
int CopyTime( string symbol_name, // symbol name ENUM_TIMEFRAMES timeframe, // period datetime start_time, // start date and time int count, // data count to copy datetime time_array[] // target array to copy open times );
same pb here,
when the next build will be released?
same pb here,
when the next build will be released?
Just to be known, I am having the same problem with CopyRates (with arguments DateFrom, DateTo), that used to work.
Let's wait for the next build.
Thanks.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use