Zigzag calculation error during backtest
-
I've run into an issue with the zigzag indicator in my EA's during backtests in MT5 where the indicator connects 2 highs or 2 lows. https://fxdreema.com/shared/XZ19rldze

The issue seems to be related to the value set for Depth. Depth values higher than 20 present this calculation error during the backtest. Does anyone know what could be causing this problem?
Many thanks in advance.
-
Here is what I would expect the zigzag to look like over the same time period.

-
i have same issue
-
This is because the zigzag indicator is simply terrible to use. You should try to find another one more reliable.