Direct Answer

Zig Zag is a price & structure measure used to transform price or quantify location relative to recurring chart structure. The production page must define the exact calculation convention before interpreting higher or lower readings, because platform and provider implementations can differ.

By Swoopr Editorial Team AI-assisted research, human-verified

Zig Zag: Formula, Meaning, Signals, Examples and How to Use It

How Is Zig Zag Calculated?

The zig-zag indicator connects significant swing highs and swing lows, ignoring price moves smaller than a threshold percentage. A new leg is registered only when price reverses by at least the threshold from the last extreme.

Formula: Reversal when |price - last extreme| / last extreme >= threshold; after a swing high H, the down leg is confirmed at H x (1 - threshold)

Inputs:

Worked example. After a swing high of 120 with a 5% threshold, a downward leg is confirmed once price falls to $114.00. The inputs are illustrative numbers, not market data.

Reading it. The line strips out small fluctuations to make the larger swings visible, which helps measure trend structure and the size of past moves. A larger threshold shows fewer, bigger swings.

Limits. The latest leg is provisional and can change as new bars arrive (it repaints), and the extremes are known only in hindsight. It is useful for studying past structure but not for real-time signals.

Indicator overview

AttributeValue
CategoryPrice & Structure
Asset classesStocks, ETFs, Indexes, Futures, Forex, Crypto
Output typeLine/scalar
ParametersVaries by implementation; document exact settings on use

What is Zig Zag?

Zig Zag is a price & structure measure used to transform price or quantify location relative to recurring chart structure. The production page must define the exact calculation convention before interpreting higher or lower readings, because platform and provider implementations can differ.

For Swoopr, the canonical profile separates definition, calculation, interpretation and decision use. That keeps readers from collapsing a descriptive metric into a trading strategy. An indicator can describe trend, momentum, volatility, participation, positioning or risk without providing a complete entry, exit, sizing or portfolio decision.

What does it measure?

Zig Zag measures specific market properties in the Price & Structure domain. The practical value is repeatability: the same inputs and formula can be applied across a defined dataset, allowing users to compare readings through time or across instruments when the calculation convention is held constant.

How to read Zig Zag

Interpretation depends on the market property being measured. A descriptive reading is not automatically predictive. The same numerical state can lead to different outcomes in a strong trend, quiet range, event-driven gap or illiquid market. Always combine with context from price structure, volume, and broader market regime before drawing conclusions.

Strengths

Weaknesses and limitations

Editorial and risk note

This page is educational content, not individualized investment advice. It should not imply guaranteed prediction, accuracy or outperformance. Where multiple valid definitions exist, Swoopr states the alternatives and the reason for selecting its primary convention.

Frequently Asked Questions

Is Zig Zag a buy or sell signal?

No. The line strips out small fluctuations to make the larger swings visible, which helps measure trend structure and the size of past moves. The latest leg is provisional and can change as new bars arrive (it repaints), and the extremes are known only in hindsight. A trade built on it still needs a trigger, an invalidation rule, a position size and realistic execution assumptions.

What is the best setting for Zig Zag?

Zig Zag takes these inputs: price series (closes or highs and lows); reversal threshold (for example 5%). There is no universal best setting for the tunable ones, so test them across instruments, regimes and out-of-sample periods and favor stable parameter regions over one historical winner.

Can Zig Zag be used by itself?

The latest leg is provisional and can change as new bars arrive (it repaints), and the extremes are known only in hindsight. It is useful for studying past structure but not for real-time signals. For that reason it is read next to measures of direction, participation, valuation, liquidity and risk, not alone.

Does Zig Zag work on every timeframe?

The calculation can be run on any bar size, but behavior is not portable: a reading on a five-minute chart describes a very different market window from the same reading on a daily chart. Validate the exact timeframe before relying on it.

Why does Zig Zag give false signals?

The same threshold means different things for a calm and a volatile asset, so one setting can show many legs on one and almost none on another. Using closes versus highs and lows for the extremes gives different turning points, so the output depends on the data field chosen. Lag, noise and regime changes add to this, because market participants react to new information after the reading is calculated.

How should Zig Zag be backtested?

Rebuild Zig Zag from price series (closes or highs and lows) using point-in-time data, write the rules before testing, include delisted securities where relevant, model realistic fills and costs, reserve a validation sample and compare with a simpler baseline.

Swoopr Editorial Team

The Swoopr Editorial Team produces independent investment education, research, and tools for understanding markets, evaluating opportunities, and managing risk. All content is educational only and does not constitute personalized investment advice.

See our editorial policy and corrections policy.