Zig Zag Indicator: Why It Repaints and How to Use It
The Zig Zag indicator draws straight lines between price swings that exceed a chosen percentage, filtering out smaller moves so the underlying swing structure becomes obvious. It is a tool for looking backwards, not a signal generator, because the most recent line moves as new prices arrive.
That last point is the whole article. Zig Zag repaints. Anyone who backtests it and finds a beautiful equity curve has tested a tool that knew the future. Used correctly it is genuinely useful for identifying swing highs and lows, Elliott wave counts and Fibonacci anchors.
How the Percentage Filter Works
There is no moving average and no smoothing, just a threshold walk through the price series.
- Start from a reference high or low.
- Track price in one direction, updating the extreme as price extends.
- When price retraces from that extreme by more than the deviation setting, confirm the extreme as a pivot and start a leg the other way.
- Draw a straight line from the previous confirmed pivot to the new one, and repeat.
The deviation is normally set in percent, with 5 percent a common default, though some platforms allow absolute points or ATR multiples. The trigger is:
Reversal confirmed when absolute (current price minus swing extreme) / swing extreme x 100 is at least the deviation percent
Worked Example (Illustrative)
Set the deviation to 5 percent and put Nifty 50 at a swing high of 24,000. The index must fall to 24,000 x 0.95, or 22,800, before that high is confirmed as a pivot.
Suppose it falls only to 23,100, a drop of 3.75 percent. Not enough, so the high of 24,000 stays provisional. If the index then rallies to 24,300, the pivot moves to 24,300 and the line you were looking at vanishes. Nothing broke. The indicator had not decided yet.
Why Repainting Rules It Out as a Signal
A repainting indicator is one whose historical plot changes as new bars arrive. Zig Zag repaints by design, since a pivot cannot be confirmed until price has already travelled the full deviation away from it.
- You can never trade the turn. By the time a low is confirmed, price is already 5 percent above it. The impression of catching the exact bottom is created after the fact.
- Backtests are meaningless. A strategy that buys at Zig Zag lows on historical data is buying at points identified only later. That is look-ahead bias, and the reported returns are fiction.
Watch the last leg on a live chart for a week and you will see it flicker between two candidate pivots. Everything to the left is stable. The final leg is a guess.
What It Is Actually Good For
Swing Identification and Wave Counts
Elliott wave analysis needs a consistent definition of a swing, and eyeballing swings smuggles in bias. A fixed deviation gives a repeatable rule, so an impulse and correction sequence gets labelled the same way twice. Analysts often run two settings together, say 8 percent for primary structure on Nifty and 3 percent for sub-waves.
Anchoring Retracements and Patterns
Fibonacci levels depend entirely on which high and low you choose, and Zig Zag pivots give objective anchors. It also makes head and shoulders, double tops and wedges easier to see, because the noise between pivots is stripped out. Since pivots are dated, you can measure typical swing size and duration, which helps in setting stop distances and targets.
| Deviation | Suits | Effect on chart | Watch out for |
|---|---|---|---|
| 1 to 3 percent | Intraday, index charts | Many pivots | Noise, unstable last leg |
| 4 to 6 percent | Daily large cap and index | Balanced swing view | Misses short pullbacks |
| 8 to 12 percent | Weekly, volatile mid caps | Major swings only | Very slow confirmation |
Volatility should drive the choice. A 5 percent setting that reads cleanly on Nifty 50 gives far too many pivots on a Nifty Midcap 150 constituent that can swing 5 percent in a session. Match the setting to the instrument and keep it fixed, because changing it until a pattern appears is curve fitting.
Frequently Asked Questions
Can I automate a strategy on Zig Zag pivots?
Not on the unconfirmed leg, which is where the apparent profit sits. Some traders feed only pivots at least one leg old into other logic, such as trailing stop placement. That is legitimate, but it gives up any chance of catching the turn.
Does a smaller deviation reduce repainting?
No, it increases how often it happens. A smaller threshold confirms pivots faster but creates many more, and each can be revised. A larger threshold means fewer revisions but a longer wait.
Is Zig Zag the same as a swing high indicator?
They overlap but differ in method. A fractal or swing-point tool marks a bar whose high exceeds a set number of bars on each side, confirming after a fixed bar count. Zig Zag confirms on a price threshold, so its delay varies with volatility.
Why do two platforms draw different Zig Zag lines?
Implementations differ on whether deviation is measured on closes or on highs and lows, and on whether it runs from the pivot or the last bar. Bonus and split adjustments in the feed also shift percentages. Pick one platform and stay with it.
Key Takeaways
- Zig Zag connects swing points that exceed a percentage deviation and filters smaller moves out.
- It repaints by design, so the most recent leg can and will change.
- Any backtest that trades Zig Zag pivots suffers look-ahead bias and is not valid.
- Its real value is retrospective: wave counts, Fibonacci anchors, pattern clarity and swing statistics.
- Match the deviation to the instrument’s volatility, then leave it alone.




