Hello,
I use the indicator ZigZag in my Expert Advisor and I noticed that this indicator gives me a wrong value in Strategy Tester for the period 2015.01.05 - 2015.01.06 (EURUSD - H1).
Everything works fine until 2015.01.09 at 06:00 (see screenshot 1), but then the last high changes to a low (see screenshot 2).
When I use the indicator on the chart, the calculations are correct. Furthermore, the indicator ZigzagColor gives also correct results (see screenshot 3).
Any idea why this happens?
The ZigZag indicator is a famous repainter and there is a risk of it "seeing the future" when used in a backtest
Thank you for your help.
Well, I know that it repaints, but this is not the problem. The problem is that the calculations are wrong. Per definition it is impossible to have a high next to another high.
Thank you for your help.
Well, I know that it repaints, but this is not the problem. The problem is that the calculations are wrong. Per definition it is impossible to have a high next to another high.
Actually I didn't look at your pics before I posted last time - that is odd!
Exactly! Unfortunately, this issue is not limited on a certain pair. I discovered the same behaviour today on GBPUSD.
I really need to fix this as soon as possible, any ideas how I can debug this?
EDIT: Here is another screenshot.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I use the indicator ZigZag in my Expert Advisor and I noticed that this indicator gives me a wrong value in Strategy Tester for the period 2015.01.05 - 2015.01.06 (EURUSD - H1).
Everything works fine until 2015.01.09 at 06:00 (see screenshot 1), but then the last high changes to a low (see screenshot 2).
When I use the indicator on the chart, the calculations are correct. Furthermore, the indicator ZigzagColor gives also correct results (see screenshot 3).
Any idea why this happens?