Laverlane
Strategy & Trading Styles

What Is the ZigZag Indicator in CFD Trading?

LLaverlane Team·Published 16 Aug 2026
In this article
financial price chart showing significant swing highs and lows connected by bold diagonal trendlines, filtering out smaller price fluctuations
Direct Answer

The ZigZag indicator is a technical analysis tool that connects major price peaks and troughs while filtering out minor market noise. It plots diagonal trendlines on a chart only when price movements exceed a specified deviation threshold, helping traders identify underlying market structure and major swing highs and lows.

This charting tool connects significant swing highs and swing lows on a price chart while filtering out smaller price movements. It helps traders identify broader market trends and price structure by reducing visual noise.

Understanding market structure is important when trading Contracts for Difference (CFDs), but smaller price movements can make the underlying trend difficult to see. The ZigZag indicator addresses this by plotting diagonal lines when price movements meet a chosen threshold. This guide explains how the indicator works, its main settings, how traders use it in CFD analysis and its key limitations.

Quick Takeaways

  • This tool connects significant price pivots to make broader market structure and trends easier to identify.
  • Its settings use minimum price-movement thresholds to filter out smaller market fluctuations.
  • The most recent ZigZag leg can continue to update until a new pivot is confirmed.
  • Traders may use ZigZag alongside structural methods such as Fibonacci extensions and Elliott Wave analysis.
  • Historical ZigZag swings do not predict future price movements or guarantee future support and resistance levels.

How the ZigZag Indicator Works

The ZigZag indicator plots diagonal lines on a chart to connect significant price turning points. It identifies peaks and troughs over time, drawing a new line when price moves by more than a specified percentage or point threshold.

Price charts naturally contain many small fluctuations that can make broader trends more difficult to identify. By applying a minimum price threshold, ZigZag filters out some of these smaller movements. If price continues in one direction without meeting the conditions for a reversal, the indicator does not confirm a new pivot. Once price reverses by the required amount, the previous pivot can be confirmed and a new leg begins in the opposite direction.

Technical analysis involves identifying patterns in historical price data, although tools such as the indicator highlight past price structure rather than forecasting future market movements.

Core Parameters: Deviation, Depth and Backstep

Depending on the trading platform and version of the ZigZag indicator, its settings may include three parameters that control how sensitive it is to price movements:

  • Deviation: The minimum price movement required for the indicator to recognise a significant change, usually expressed as a percentage or point value. A default value of around 5% is sometimes used.
  • Depth: A setting used to control how the indicator searches for significant highs and lows across a specified number of bars.
  • Backstep: A setting that controls the minimum separation between potential pivot points, helping to reduce conflicting swing points.

A higher deviation threshold generally filters out more minor price movements and focuses on larger swings. A lower threshold makes the indicator more sensitive to smaller movements, producing more ZigZag legs and potentially more visual noise.

The Repainting Characteristic and CFD Risk

One of the most important characteristics of the ZigZag indicator is that its most recent leg can change as new price data becomes available. This behaviour is commonly referred to as repainting.

If the current price continues to make a new high or low before a reversal is confirmed, the indicator can move the endpoint of its active line to the latest extreme. The pivot is only confirmed once the conditions defined by the indicator's settings have been met.

In practice, many traders misinterpret the smooth historical lines on a completed chart, assuming that the indicator identified market tops and bottoms in real time.

Because the active leg can change as new price bars develop, using the current ZigZag endpoint as a real-time trading signal carries significant risk. CFDs are leveraged products, so adverse price movements can result in rapid losses and may lead to a margin call if available margin falls too low.

Using ZigZag with Complementary Technical Strategies

Because the indicator is primarily a visual filter rather than a predictive trading system, traders rarely use it in isolation. Instead, it can provide a clearer structural framework for other analytical methods:

  • Fibonacci Extensions: Swing highs and lows identified by ZigZag can provide reference points for drawing Fibonacci retracements and extensions.
  • Pattern Recognition: The indicator can make chart structures such as Double Tops, Double Bottoms and Head and Shoulders patterns easier to identify.
  • Fractal Structure: Combining the tool with fractal trading concepts can help traders examine recurring swing structures across different chart timeframes.
  • Elliott Wave Analysis: Elliott Wave analysis requires traders to identify impulse and corrective price legs. ZigZag can make these broader swings easier to see by filtering out smaller price movements.
Strategy Context
How ZigZag Assists
Limitation to Manage
Trend Identification
Makes sequences of higher highs, higher lows, lower highs and lower lows easier to see
The latest trend reversal is not confirmed immediately
Fibonacci Plotting
Provides clearer swing high and swing low reference points
Repainting means the latest anchor point can change
Chart Patterns
Helps outline structures such as Head and Shoulders
Historical patterns do not guarantee that future patterns will complete

Common Mistakes When Trading with ZigZag

A common beginner mistake is treating the endpoint of the current ZigZag line as an immediate buy or sell signal — if you do this, you risk entering just as the trend continues against you. Because the latest pivot is not confirmed until the indicator's reversal conditions are met, the active endpoint can continue to move as the trend develops. Entering a position simply because an apparent pivot has formed can therefore leave a trader exposed if the existing trend continues.

Another mistake is applying the same settings to every instrument and timeframe. A 5% deviation on a volatile market such as a cryptocurrency CFD can produce a very different view of price structure from the same percentage setting on a major Forex pair. Adjusting the indicator's parameters to reflect the characteristics and volatility of the underlying asset can provide a more consistent view of market structure.

Understanding the ZigZag Indicator in Market Analysis

This tool can help you filter out smaller price fluctuations, map significant swing highs and lows, and identify reference points for analysis such as Fibonacci extensions — but it won't tell you what happens next. However, its repainting behaviour means that the most recent price structure can change as new market data becomes available. It should therefore be viewed as a way to organise and interpret price structure rather than as a tool that predicts future turning points.

Trading CFDs carries a high risk of losing money rapidly because of leverage. Regulator-mandated risk disclosures typically show that the majority of retail CFD accounts lose money — check the specific loss percentage published by your chosen provider's regulator. Technical tools cannot remove this risk or guarantee future market movements.

Understanding how price-filtering tools fit into a broader trading plan also requires a sound understanding of foundational technical indicators and a structured approach to market analysis and risk management.

FAQ

Does the ZigZag indicator predict future price direction?

No. The ZigZag indicator plots past price pivots post-facto based on a fixed deviation threshold. It functions purely as a visual structure-mapping tool to highlight historical swing highs and lows rather than forecasting future price movements or trend reversals.

What does repainting mean for the ZigZag indicator?

Repainting means the indicator dynamically updates its active, current line as new price highs or lows form. The active leg continues to shift until price reverses beyond the chosen deviation percentage, meaning the current line cannot be used as an instant execution signal.

What is the best deviation setting for the ZigZag tool?

The default deviation setting is often 5% on many popular charting platforms, though this can vary by provider — the ideal parameter ultimately depends on asset volatility and chart timeframe. Higher deviations filter out macro market noise, whereas lower thresholds increase sensitivity to smaller swing points.

Can I use the ZigZag indicator as a standalone trading system?

Using the ZigZag indicator in isolation is risky because it lags actual price turns until the deviation threshold is met. Traders typically combine it with complementary technical tools like Fibonacci extensions, Elliott Wave analysis, or chart pattern recognition.

How does the ZigZag indicator help with Fibonacci extensions?

The ZigZag indicator provides objective anchor points by clearly connecting major swing highs and lows. Traders place Fibonacci retracement and extension tools across these visual pivot points to map potential support and resistance levels.