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.
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:
- Price series (closes or highs and lows)
- Reversal threshold (for example 5%)
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
| Attribute | Value |
|---|---|
| Category | Price & Structure |
| Asset classes | Stocks, ETFs, Indexes, Futures, Forex, Crypto |
| Output type | Line/scalar |
| Parameters | Varies 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
- A percentage threshold filters out small counter-moves, so the remaining legs summarize a chart's major swings in a few line segments.
- Swing sizes between turning points can be read off directly as percentages, which makes legs measurable and comparable.
- Reproducible when the formula and data convention are fixed.
Weaknesses and limitations
- 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.
- Correlated indicators can create false confidence by repeating the same underlying information.
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.