ATR-limited Donchian ChannelThe ATR-limited Donchian Channel is a modified version of the classic Donchian Channel that adapts more quickly to changing market conditions.
While a traditional Donchian Channel is based only on the highest high and lowest low over a given lookback period, this version introduces an ATR-based constraint that prevents the channel lines from extending too far away from price. This makes the channel more responsive and reduces lag compared to the standard Donchian Channel.
How it works
The upper band is based on the highest high of the last N candles, but it cannot exceed a maximum distance of ATR × Factor above the current median price (midpoint of high and low).
The lower band is based on the lowest low of the last N candles, but it cannot drop more than ATR × Factor below the median price.
If the Donchian Channel would normally extend further than this ATR-limited boundary, the line is capped and marked in blue .
Otherwise, the upper band is drawn in red and the lower band in green .
A middle line is also plotted as the average of the modified upper and lower bands.
An optional offset allows you to shift the channel backward or forward in time for easier visual alignment.
Why use this version?
Faster reaction: By constraining the channel with ATR, the indicator adapts quicker to volatility changes and avoids long periods of overextended levels.
Noise control: ATR filtering prevents extreme spikes or outlier highs/lows from stretching the channel unnecessarily.
Visual clarity: Color-coding highlights when ATR filtering is active, making it easy to distinguish capped vs. natural Donchian levels.
Typical use cases
Trend-following breakout systems, but with volatility-aware limits.
Identifying dynamic support and resistance zones that adjust to market conditions.
Filtering false breakouts by monitoring when the Donchian channel is capped by ATR.
✅ This indicator is designed for traders who want the structure of a Donchian Channel but with an adaptive, volatility-sensitive adjustment that makes it react faster and more reliably than the classic version.
Donchianchannelwidth
Donchian Channel with Range AdditionA Donchian Channel with additional zones at places where its range is smaller than a set amount of atr. Thus it kind of combines with Keltner Channel qualities. Purpose is to set a stop loss wide enough to avoid shaking out of a position. The example chart shows a Philips day chart, where I opened position on 16 juli at 37,50 and set the stop loss at low border level 35,60, on 23 juli was an earnings rapport, the wick of the candle shows that quotes went very low, obviously smart traders had to fill a huge order and hunted for stops, triggering my stop closing the position. next days quotes went a lot better, so I missed the fun. The Donchian Channel was too narrow because quotes had ranged in the previous weeks. If I had placed my stop on the additional low, setting it 5 atr below the high border, my stop would have been safe.
Donchian Channel Width Strategy The Donchian Channel was developed by Richard Donchian and it could be compared
to the Bollinger Bands. When it comes to volatility analysis, the Donchian Channel
Width was created in the same way as the Bollinger Bandwidth technical indicator was.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Donchian Channel Width Strategy The Donchian Channel was developed by Richard Donchian and it could be compared
to the Bollinger Bands. When it comes to volatility analysis, the Donchian Channel
Width was created in the same way as the Bollinger Bandwidth technical indicator was.
WARNING:
- This script to change bars colors.
Donchian Channel Width The Donchian Channel was developed by Richard Donchian and it could be compared
to the Bollinger Bands. When it comes to volatility analysis, the Donchian Channel
Width was created in the same way as the Bollinger Bandwidth technical indicator was.
As was mentioned above the Donchian Channel Width is used in technical analysis to measure
volatility. Volatility is one of the most important parameters in technical analysis.
A price trend is not just about a price change. It is also about volume traded during this
price change and volatility of a this price change. When a technical analyst focuses his/her
attention solely on price analysis by ignoring volume and volatility, he/she only sees a part
of a complete picture only. This could lead to a situation when a trader may miss something and
lose money. Lets take a look at a simple example how volatility may help a trader:
Most of the price based technical indicators are lagging indicators.
When price moves on low volatility, it takes time for a price trend to change its direction and
it could be ok to have some lag in an indicator.
When price moves on high volatility, a price trend changes its direction faster and stronger.
An indicator's lag acceptable under low volatility could be financially suicidal now - Buy/Sell signals could be generated when it is already too late.
Another use of volatility - very popular one - it is to adapt a stop loss strategy to it:
Smaller stop-loss recommended in low volatility periods. If it is not done, a stop-loss could
be generated when it is too late.
Bigger stop-loss recommended in high volatility periods. If it is not done, a stop-loss could
be triggered too often and you may miss good trades.