Skip to content

Detector · TRADES · NODE

ZigZag

The swings of the session, joined high to low once price reverses by the set amount.

Strategy Builder: ZigZag

What it shows

ZigZag draws a line from swing high to swing low and back, so the shape of the move shows without the noise of every bar. Its swings are not only drawn: the absorption and exhaustion marks, market structure and chart patterns all find their swings with the ZigZag’s settings, whether its line is shown or not.

The line
PartWhat it shows
Confirmed swingA high or low that price has since turned from by the reversal; it no longer moves.
Last legThe leg from the last confirmed swing to the newest extreme; it follows price until price turns far enough.

How it works

  1. 1A swing needs a turn

    A new swing needs price to turn from the last extreme by ATR multiplier times the ATR, 1.5× by default. A low is confirmed only once price has risen from it by that much, so it is known some bars after it was made.

  2. 2Highs and lows alternate

    After a low, the next swing is a high, confirmed when price turns down from it by the same amount. A swing must also be the highest high or lowest low of 3 bars on each side (Depth), at least 2 bars from the last one (Min bars).

  3. 3The last leg is still forming

    The newest leg is drawn to the latest extreme and moves with price until price turns from it far enough to confirm it. Anything that reads that leg may change with it.

  4. 4A larger turn, fewer swings

    Raising the ATR multiplier keeps only the larger swings; small bounces stop counting. Every detector that reads the ZigZag finds fewer swings too.

How to use it

Turn on ZigZag in the Detectors menu. Its settings sketch the swings with the values you set and say how many swings the loaded bars hold, how far apart they are and whether the last is still forming. Runs on chooses the chart’s timeframe or a fixed one.

  • Set the swings first, then the detectors that read them: they all change with it.
  • Count only confirmed swings when you compare highs and lows.
ZigZag settings
SettingDefaultWhat changes
ATR adaptiveOnOff uses a fixed share of price for the turn instead of the ATR.
ATR multiplier1.5×Higher keeps only larger swings.
Deviation0.5%The turn as a share of price, used when ATR adaptive is off.
Depth3 barsHigher confirms fewer swings; 0 skips the check.
Min bars2 barsHigher skips quick swings.

What it does not tell you

  • A swing is drawn where the extreme was, but it is known only later, once price has turned from it.
  • The last leg repaints until it is confirmed. Do not treat its end as a swing yet.
  • Which swings exist depends on the settings and the timeframe; another setting draws another line.
  • It describes the moves that happened. It does not forecast the next swing.

Test it in the Strategy Builder

ZigZag gives the latest swing high and swing low, with the chart’s settings or its own.

Nodes to look for in the Strategy Builder’s palette:

  • ZigZag

Other layers in this family

  • Market structureBreaks of structure, shifts and swing failures, labeled at the bar they became known.
  • Chart patternsFlags, triangles, double tops and bottoms, head and shoulders, each with its target and where it fails.
  • Harmonic patternsGartley, Bat, Butterfly, Crab, Cypher and Shark: five swings in Fibonacci ratios, each with a zone and target.

Questions

The last leg is still forming: it follows price to each new extreme until price turns from it by the reversal. Confirmed swings before it do not move.

Absorption and exhaustion, market structure and chart patterns find their swings with the ZigZag’s settings. A different reversal gives them different swings to read.

See it on a real market

Trading Glass is in private beta and reads Binance data. Every layer described here runs in the chart on that data.