Ok, forget the issue, I overloaded the command by a custom method using ArrayCopyRates and ArrayCopy, and so far it seems stable.
Just avoid CopyRates, it is a time bomb.
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
I encounter problems with CopyRates on MT4. Could someone give me a clue, where the problem is?
When I attach an indicator to a chart, the indicator crashes on CopyRates command, producing this expert tab output:
But it does not crash on the first pass of the command, but rather it crashes casually and only with particular symbols. The code seems clear, and I added trace messages to locate the problem. But nothing seems wrong with the pass which crashes after Access violation write.
The relevant code bit is attached, as well as the ending of the indicator tracing file.
Trace ends with this line:
_