Donchian Zig-Zag
By LuxAlgoFeb 15, 2021
Donchian Zig-Zag is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
Donchian Zig-Zag draws a line that bounces off the extremities of a Donchian channel, recreating the familiar zig-zag structure with one twist: you decide how fast the line travels. At the lowest bounce speed it lags price and rides trends in straight segments; at higher speeds it converges on the extremes quickly enough to take on a leading, projective character. Extended lines through its peaks and troughs add a further layer of support and resistance analysis.
How to Trade the Donchian Zig-Zag?
- Bounce Speed at 1: the line lags, and its cross with price can serve as an entry cue; the straight trajectory ignores retracements, which helps in holding a position through a trend.
- Bounce Speed above 1: faster convergence gives the line a predictive lean, sketching where the swing may be headed.
- Peaks and troughs: connect them with earlier highs and lows to project support and resistance. Approximate by nature, but a useful extra read.
This is an experimental take rather than a staple, one that aims to inspire unconventional approaches as much as to serve as a finished system. Treat its signals as a framework to test against your own process.
Donchian Zig-Zag Settings
- Length: the period of the Donchian channel; larger values flip the line less often, favoring stable trend identification.
- Bounce Speed: how quickly the line heads for the channel extremities. Higher values converge faster for earlier trend reads.
- Gradient (default On): applies a gradient color to the area between the extremities.
- Transparency: sets how visible that filled area is.
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom Alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Also works on
Related indicators
All 9 Zigzag Structure indicatorsRun it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.





