Understanding the ZigZag
The ZigZag indicator is one of the most misunderstood tools in the MetaTrader toolkit. It's not a predictive indicator — it doesn't generate buy or sell signals. Instead, it's a structural tool that connects significant swing highs and swing lows with straight lines, filtering out minor price fluctuations to reveal the market's underlying geometric pattern.
The key parameter is the deviation, typically set at 5%. This means the indicator only marks a new turning point when price has reversed by at least 5% from the previous extreme. Higher deviation values produce fewer, more significant swing points. Lower values capture smaller swings and more detail. The depth and backstep parameters control how many bars are considered for each swing and the minimum bars between turns.
ZigZag's primary value is in clarifying chart structure. When you look at a raw price chart, it can be difficult to identify which highs and lows are "significant." ZigZag solves this by objectively marking the turning points, making it easy to see the trend of higher highs and higher lows (uptrend) or lower highs and lower lows (downtrend).
This structural clarity makes ZigZag indispensable for several analytical techniques. Elliott Wave practitioners use it to identify impulse and corrective waves. Harmonic pattern traders rely on it to find XABCD patterns (Gartley, Butterfly, Bat, Crab). Fibonacci traders use the swing points as anchors for retracement and extension levels. Without ZigZag, these analyses require subjective judgment about which swings are "important."
The critical caveat is that ZigZag repaints. Its most recent leg is always subject to change — if price reverses before reaching the deviation threshold, the indicator adjusts the last segment retroactively. This is by design (it's measuring structure, not predicting future structure), but it means you cannot use the current unfinished leg for live trading decisions.
Experienced traders work around the repaint issue by only using confirmed swings (not the latest one) for analysis. A confirmed ZigZag swing is one that's been followed by a new swing in the opposite direction. The last completed swing high and swing low are reliable reference points for support/resistance analysis, Fibonacci drawing, and pattern identification.
How to Use the ZigZag
Set the deviation percentage (default 5%) to control sensitivity — lower values catch smaller swings, higher values only show major moves. Use ZigZag to identify swing points for Fibonacci retracement and extension levels. It's excellent for pattern recognition: head and shoulders, double tops/bottoms, and Elliott Wave counting. Remember that ZigZag repaints its most recent leg, so don't use the current segment for live trading decisions.
Best For
Chart structure analysis, Elliott Wave counting, and identifying major swing points
Key Parameters
Trading Strategy Tips
Use ZigZag-confirmed swing points as Fibonacci anchor levels. Once ZigZag marks a completed swing high and swing low (not the current, potentially repainting leg), draw Fibonacci Retracement between them. These are objective, non-subjective swing points that produce consistent Fibonacci levels. Trade the 38.2% and 61.8% retracements with candlestick confirmation.
For breakout trading, use confirmed ZigZag swing highs as resistance levels. When price breaks above a ZigZag swing high with strong momentum (confirmed by volume or RSI above 50), enter long with a stop below the nearest ZigZag swing low. The clear structural levels remove guesswork from identifying genuine breakout points.
The ZigZag pattern recognition strategy identifies chart patterns objectively. Four ZigZag swings can form a head and shoulders, double top, or triangle. Rather than eyeballing these patterns on noisy charts, use ZigZag to outline them clearly. This structured approach to pattern trading is especially useful for newer traders developing their chart reading skills.
Best Brokers for ZigZag Trading
To get the most from the ZigZag, choose a broker with reliable charting tools and fast execution.
Related Indicators
Frequently Asked Questions
What is the ZigZag indicator?
The ZigZag indicator filters out minor price movements and connects significant swing highs and lows with straight lines. It's not a predictive tool but excels at clarifying chart structure by removing noise from price action.
How do I add ZigZag to my chart?
In MetaTrader 4 or 5, go to Insert → Indicators → Custom and select ZigZag.
Is ZigZag good for beginners?
Chart structure analysis, Elliott Wave counting, and identifying major swing points