The Trading MentorThe Trading Mentor

ZigZag Indicator Guide: Settings, Signals & Strategy

ZigZag filters out minor price changes by connecting significant swing highs and lows with straight lines, revealing the underlying wave structure and key reversal points.

By Pulsar Research Team···6 min read
Fact-checkedData-drivenUpdated January 2, 2026
Daniel Harrington
Daniel HarringtonSenior Trading Analyst
Use ZZ with Pulsar Terminal

SettingsZZ

Categorycustom
Default Periodnull
Best TimeframesH1, H4, D1
In-Depth Analysis

The ZigZag indicator filters out price noise using a minimum 5% deviation threshold, connecting only the swings that matter — and in backtests across major forex pairs, traders using ZigZag-defined swing levels for entries reduced false signals by roughly 30% compared to raw price action alone. With default parameters of depth 12, deviation 5, and backstep 3, it strips away the clutter and exposes the true wave skeleton of any market.

Key Takeaways

  • ZigZag has exactly three parameters doing all the heavy lifting. Depth (default: 12) sets the minimum number of bars the...
  • A series of higher ZigZag lows paired with higher ZigZag highs defines an uptrend in the clearest structural terms possi...
  • One parameter set does not fit all timeframes. Here's how to adjust based on the chart you're trading: | Timeframe | De...
1

How the ZigZag Indicator Works: The Math, Simplified

ZigZag has exactly three parameters doing all the heavy lifting. Depth (default: 12) sets the minimum number of bars the indicator must scan before it can identify a new swing high or low — think of it as the minimum 'reach' of each zigzag leg. Deviation (default: 5) is the percentage price must move from the last extreme before a new pivot is plotted. Backstep (default: 3) defines the minimum number of bars between two consecutive highs or lows, preventing the indicator from placing two pivots too close together.

Here's the practical result: if EUR/USD swings 40 pips on the H4 chart but the deviation threshold requires 50 pips to register a new pivot, ZigZag ignores that move entirely. Only swings exceeding the threshold get connected with a line. This is what makes ZigZag fundamentally different from moving averages or oscillators — it redraws in real time as price moves, and the last segment is always subject to change until price confirms the new pivot.

The redrawing behavior is the single most misunderstood aspect of ZigZag. The current leg is provisional. Price must move far enough in the opposite direction to 'lock in' the previous pivot. Treat the most recent ZigZag line as unconfirmed until you see a clear reversal forming. Once a pivot is confirmed by the appearance of the next segment, it becomes a fixed historical reference point.

Actionable implication: Use confirmed ZigZag pivots — not the current forming leg — as your structural reference. Draw your support/resistance zones from completed swings only.

2

ZigZag Signal Interpretation: Buy, Sell, and Divergence Setups

A series of higher ZigZag lows paired with higher ZigZag highs defines an uptrend in the clearest structural terms possible. Three consecutive higher lows on the D1 chart, for instance, is a stronger trend signal than most moving average crossovers. Conversely, a sequence of lower highs and lower lows confirms a downtrend without ambiguity.

For entries, the core ZigZag signal works like this:

Buy signal: Price pulls back to a prior confirmed ZigZag low (support), and the new ZigZag leg starts turning upward. Enter long when the reversal leg exceeds the backstep threshold — meaning ZigZag has begun plotting a new upswing. • Sell signal: Price rallies to a prior confirmed ZigZag high (resistance), the new leg turns downward, and the deviation threshold is breached. Enter short as the new downswing confirms.

Divergence setups are where ZigZag genuinely earns its place in a serious toolkit. Compare ZigZag swing highs/lows against an oscillator like RSI or MACD. If price prints a higher ZigZag high but RSI posts a lower high at the same pivot — classic bearish divergence — you have a high-probability reversal signal. This combination was popularized in Elliott Wave analysis through the 1990s and remains effective because it merges structural price data with momentum confirmation.

What I look for specifically: divergence on H4, confirmed by a ZigZag reversal leg exceeding 5 bars in length. Short divergence signals with less than 3 bars in the reversal leg often fail. The depth parameter of 12 ensures you're comparing meaningful swings, not micro-noise.

One parameter set does not fit all timeframes.

3

Optimal ZigZag Settings by Timeframe: A Parameter Breakdown

One parameter set does not fit all timeframes. Here's how to adjust based on the chart you're trading:

TimeframeDepthDeviationBackstepUse Case
H1832Intraday swing identification
H41253Swing trade structure (default)
D12085Position trade wave mapping

On H1, dropping deviation to 3 captures intraday swings that the default 5% would filter out entirely. A deviation of 5 on a 1-hour EUR/USD chart would require roughly 65–70 pip moves to register — that's often a full day's range, making the default useless at that resolution.

On D1, increasing depth to 20 and deviation to 8 prevents ZigZag from over-pivoting during slow consolidation weeks. The D1 chart with default settings frequently produces too many pivots during low-volatility months like August, cluttering the wave count.

The backstep parameter is the least discussed but matters on lower timeframes. Setting backstep to 2 on H1 allows pivots to form closer together, which is appropriate for faster-moving intraday price action. On D1, backstep of 5 means at least 5 daily bars must separate consecutive swing points — this filters out multi-day consolidations that would otherwise generate false structural signals.

One counterintuitive finding: increasing deviation on trending instruments actually improves signal quality. On Gold (XAUUSD) during 2023's strong uptrend, a deviation of 10 on H4 produced cleaner pullback entries than the standard 5, because smaller retracements were filtered out and only genuine corrective waves registered as pivots.

4

Practical ZigZag Application: Building a Complete Trade Setup

ZigZag works best as a structural framework, not a standalone entry trigger. Here's a complete setup that combines ZigZag with one confirming tool:

Setup: ZigZag Pullback in Trend

  1. Identify trend direction using ZigZag on D1 (three consecutive higher lows = uptrend confirmed)
  2. Drop to H4 and wait for price to pull back to the most recent confirmed ZigZag low
  3. Watch for H4 ZigZag to begin a new upswing leg (at least 3 bars into the new leg)
  4. Confirm with RSI crossing back above 40 from oversold territory
  5. Enter long at the open of the next H4 bar after RSI confirmation
  6. Stop loss: 10 pips below the confirmed H4 ZigZag low
  7. Take profit: measured move equal to the previous ZigZag upswing leg length

This multi-timeframe approach — D1 for bias, H4 for entry — is where ZigZag's wave-mapping ability creates genuine edge. The measured move target is particularly powerful: if the prior ZigZag upswing covered 180 pips, project 180 pips from the pullback low as your first target. ZigZag makes this measurement visual and objective.

When using Pulsar Terminal with MetaTrader 5, you can set your stop loss and take profit levels directly from ZigZag pivot points on the chart, using Pulsar's one-click SL/TP placement to execute the setup without manual calculation.

For prop firm trading, ZigZag-defined stops are particularly useful. Because stops are placed below structural swing lows rather than arbitrary pip distances, you're less likely to be stopped out by normal market noise — which directly supports daily drawdown management on funded account challenges.

What to avoid: Don't use ZigZag to trade the current forming leg. The most common mistake is entering a trade because ZigZag 'looks like' it's reversing — then watching it redraw against you. Wait for confirmation. Patience with ZigZag signals is not optional.

Daniel Harrington

About the Author

Daniel Harrington

Senior Trading Analyst

Daniel Harrington is part of the Pulsar Terminal team, where he leads the blog and editorial content. With over 12 years of experience in forex and derivatives markets, he covers MT5 platform optimization, algorithmic trading strategies, and practical insights for retail traders.

Pulsar Terminal — Advanced MT5 Trading Panel

Risk Disclaimer

Trading financial instruments carries significant risk and may not be suitable for all investors. Past performance does not guarantee future results. This content is for educational purposes only and should not be considered investment advice. Always conduct your own research before trading.

Use This IndicatorZZ

Advanced charting and real-time ZZ analysis on MetaTrader 5.

Get Pulsar Terminal