Known bug, and MetaQuotes is already aware about it.
@Alain Verleyen thanks for your reply.
I searched on this forum and couldn't see any references to the same issue. How do you know it's a known bug? They've made multiple releases and not fixed the issue, are you sure they know about it?
jedster7594 #:
@Alain Verleyen thanks for your reply.
I searched on this forum and couldn't see any references to the same issue. How do you know it's a known bug? They've made multiple releases and not fixed the issue, are you sure they know about it?
Yes. It's documented. And it's communicated.
Until now the bug exists.
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
When a new bar appears in the strategy tester, I'm seeing that indicator buffers don't appear to get filled correctly.
For the first tick of a new bar, if I call CopyRates function I can correctly see index 0 in the array contains the values for the opening tick of the bar, and index 1 contains the closing values from the previous bar.
Here is a simple EA.
I just put a breakpoint after the CopyBuffer function so I can view the results.
I attached some screenshots captured from the strategy tester at the first tick of a new bar. The chart hasn't refreshed at this point as execution is waiting on the breakpoint. We can see the chart value for the indicator for the previous bar (datetime at 01:18) is at 37761.600.
And from the watchlist we can see that the currentRates array shows index 0 has rolled into the new bar time of 01:19, however the buffer array at index 0 for the indicator is still showing the value for the previous bar.
Can anyone verify if they see the same behaviour?
I can obviously work around this by waiting for the 2nd tick, however this is currently having a clear impact on results in the strategy tester that trigger off a new bar.