Dalal Street Blogs provides information for educational purposes only and does not constitute investment advice. Please consult a SEBI-registered investment adviser before making any investment decisions.
CAUTION: Dalal Street Blogs publishes market news and educational content only. We do not promote, recommend or endorse any stock, and nothing here is a solicitation to buy or sell securities. Please consult a SEBI-registered adviser before investing.

Indian Stock Market News, Analysis and Trading Guides

Technical Analysis

Donchian Channel Indicator: Trading Breakouts on NSE Stocks With 20-Day Highs and Lows

Donchian channel indicator: a river flowing through a narrow channel between tall canyon walls at sunset

Photo: johnNaturePhotos via Pixabay

By Dalal Street Blogs Editorial11 min read

The Donchian channel indicator is about as plain as technical tools get. There’s no smoothing, no standard deviation and no formula you’d need a calculator for. You take the highest high and the lowest low of the last so many sessions, draw a line at each, and draw a third line halfway between them. That’s the whole indicator. And yet that bare-bones box is one of the most useful ways we know to answer two questions every swing trader asks: is this stock actually breaking out, and where should I get out if it isn’t?

In this guide we build the channel from scratch, run a made-up NSE-style stock through it with round rupee numbers, turn a breakout into an entry, a stop and a position size, and then look honestly at the sideways phases where the channel will cost you money.

In this article
  1. What the Donchian channel indicator measures
  2. How the lines behave on a daily chart
  3. Channel width: a quick volatility gauge
  4. Reading a Donchian channel breakout
  5. A worked example with a hypothetical stock
  6. Choosing the lookback period
  7. Donchian channel vs Bollinger Bands and Keltner channels
  8. Combining the channel with other tools
  9. Where the Donchian channel lets you down
  10. A short checklist before acting on a breakout
  11. The short version

What the Donchian channel indicator measures

The indicator is named after Richard Donchian, the commodities trader TradingView’s help page on Donchian Channels describes as “The Father of Trend Following”. It has three lines:

  • Upper channel: the highest high over the last N periods.
  • Lower channel: the lowest low over the last N periods.
  • Middle channel: the upper and lower lines added together and divided by two.

Investopedia’s Donchian Channels explainer gives the same formula and says the most common setting is 20 periods, roughly the number of trading days in a month. TradingView uses 20 days for its worked calculation too, and calls it a very commonly used timeframe. A period can be anything: a day, a week, an hour, even a minute on an intraday chart. Most people who use the channel for positional trades stick to daily candles.

Notice what’s missing. Closing prices don’t enter the calculation at all, only highs and lows. And there’s no averaging of those extremes either. One spike high on a news day sits at the top of the channel, untouched, for the next 20 sessions, and then drops out of the window all at once. That’s why the upper and lower lines move in steps rather than curves.

How the lines behave on a daily chart

Once you’ve watched the channel for a few weeks, its movement starts to feel mechanical, because it is. Investopedia’s description is worth spelling out:

  • When price makes a fresh 20-day high, the candle physically pushes the upper line up with it.
  • When price makes a fresh 20-day low, it drags the lower line down.
  • If a stock falls steadily from a high, the upper line stays flat until that high is more than 20 sessions old, and only then starts stepping down.
  • The same happens in reverse for the lower line after a rally off a low.

So a flat upper line is telling you something specific: nobody has paid more than that price in the last month. A rising lower line tells you buyers have been stepping in at higher levels for weeks. You don’t need any other indicator to see that.

A flat upper line isn’t noise. It’s the market telling you that nobody has paid more than that price in a month.

Channel width: a quick volatility gauge

The distance between the top and bottom lines is a rough measure of how much a stock has been swinging. Both Investopedia and TradingView make this point: a wide channel means big moves over the period, a narrow one means the stock has gone quiet. TradingView goes further and calls volatility the indicator’s main job.

The raw width in rupees is hard to compare across stocks, so we like to express it as a percentage of the middle line. A ₹40 channel on a ₹200 stock is 20%, which is a lot of movement. The same ₹40 on a ₹2,000 stock is 2%, which is barely a ripple.

Why care? Investopedia notes that when price keeps trading inside a narrow channel, the stock may be consolidating, and a breakout becomes more likely once price finally moves beyond the outer lines. Narrowing first, breaking out second is the sequence many traders wait for. It doesn’t guarantee anything, but it does give you a reason to start watching a chart closely.

Reading a Donchian channel breakout

The classic signal is simple. A move above the upper channel suggests an uptrend and a possible buy. A move below the lower channel suggests a downtrend, and possibly a time to sell or short. Investopedia adds a useful filter: treat the breakout as confirmed once price closes beyond the band, rather than merely poking through it during the day.

We’d underline that filter for NSE stocks. Intraday spikes through a 20-day high are common around results, block deals or a big index move, and plenty of them fade before the close. Waiting for the close costs you a few rupees of entry price on the real breakouts and saves you from a lot of the fake ones.

There’s a second way traders read the channel, which TradingView describes: during a well-defined uptrend, repeated touches of the upper band can be a sign that the trend is strengthening rather than a sign it’s overdone. That’s the trend-follower’s mindset. A stock that keeps printing new 20-day highs is, by definition, a stock in demand.

For the bigger picture on breakouts in general, including volume confirmation and retests, our explainer on what a breakout in stocks really is goes through it step by step.

A worked example with a hypothetical stock

Let’s take an imaginary mid-cap, Sahyadri Forgings, on a daily chart with the standard 20-session channel. Every price below is made up to keep the arithmetic clean.

Step 1: the setup. Over the last 20 sessions, the highest high is ₹486 and the lowest low is ₹442. So:

  • Upper channel = ₹486
  • Lower channel = ₹442
  • Middle channel = (486 + 442) / 2 = ₹464
  • Width = 486 − 442 = ₹44, which is about 9.5% of the ₹464 middle line

Say two months earlier the same stock’s 20-session channel was close to 20% wide. The range has roughly halved. The stock has gone quiet, and that’s what puts it on our watchlist.

Step 2: the false start. One afternoon the stock trades up to ₹489, briefly clearing ₹486, but closes at ₹481, back inside. Under the close-only rule, nothing happens. Good thing too: the next day it slips to ₹474.

Step 3: the real breakout. A week later it closes at ₹491, above the ₹486 upper line. That’s our signal. We buy at ₹491.

Step 4: the stop. Investopedia’s suggestion for a long trade is a stop just below the lower channel. Here that’s ₹442, which is ₹49 a share away. That’s a lot of room. The middle line at ₹464 is a tighter option at ₹27 of risk. Many traders split the difference by using a shorter channel for exits, say a 10-session low. Suppose the 10-session low is ₹458. Our stop goes there, and the risk is 491 − 458 = ₹33 a share.

Step 5: the position size. With a trading account of ₹5,00,000 and a rule of risking 1% per trade, the most we’re willing to lose is ₹5,000. Divide by the ₹33 risk per share and we get 151.5, so we buy 151 shares. The position is worth 151 × ₹491 = ₹74,141. Notice how the stop decided the size, not the other way round.

Step 6: trailing the stop. Over the next three weeks the stock grinds up to ₹538. Each time the 10-session low rises, we move the stop up to it. By the time the stock tops out, the 10-session low has climbed to ₹512.

Step 7: the exit. The stock fades and closes at ₹510, below the ₹512 trailing line. We sell. Gain: ₹510 − ₹491 = ₹19 a share, or 151 × ₹19 = ₹2,869 on the trade.

Look at what we gave up. The high was ₹538, and we sold ₹28 below it. That’s the cost of a channel exit: it always waits for price to prove the trend is over, so you never sell the top. Traders who use the channel accept that trade-off in exchange for staying in the big moves. Investopedia mentions an alternative for profit-taking: book gains when price crosses back through the middle line, or at the opposite band. Pick one rule before you enter and stick to it.

A channel exit will never sell you the top. Its whole job is to wait until the trend proves it’s over, and that wait has a price.

Choosing the lookback period

There’s no correct number. Investopedia’s guidance is that fewer periods make the channel more responsive, which suits short-term trading, while more periods give a wider view of the trend and suit longer holding periods. It also makes the honest point that the right setting comes from experience, because what works on one stock or market may not work on another.

Here’s how we’d think about it in practice:

  • Shorter windows (around 10 sessions): more signals, tighter stops, and a lot more whipsaws. Useful mainly as an exit line.
  • The standard 20 sessions: roughly a month of trading. A fair default for swing entries.
  • Longer windows: fewer signals that tend to catch bigger trends, with wider stops and therefore smaller position sizes for the same rupee risk.

Using a longer channel for entries and a shorter one for exits, as in our example, is a common way to get the best of both. Whatever you choose, scroll back through a couple of years of the stock’s history and count how many breakouts actually followed through. If most of them failed, the setting or the stock isn’t suited to this approach.

Donchian channel vs Bollinger Bands and Keltner channels

These three get lumped together because they all draw bands around price, but they’re built differently. Investopedia’s comparison: Donchian plots the raw highest high and lowest low, while Bollinger Bands plot a simple moving average plus and minus two standard deviations of price. That makes Bollinger Bands more balanced and less affected by one extreme print. The Donchian line, by contrast, sits exactly at the extreme, which is why it works so neatly as a breakout trigger.

If you want to compare them on the same chart, our guide to Bollinger Bands walks through the squeeze and band-walk setups, and our Keltner channel indicator explainer covers a version that wraps an average with volatility-based bands. Each will flag a different set of days as “breakouts” on the same stock, which is a useful lesson in itself.

Combining the channel with other tools

On its own, the channel only tells you price has hit an extreme. Investopedia suggests a few ways to add context:

  • Volume: a breakout on noticeably heavier volume than recent sessions is more convincing than one on a quiet day.
  • Moving averages: a breakout above the upper line that’s also above a rising moving average agrees with the bigger trend.
  • RSI: a break above the upper band with a very high RSI may mean the stock is already stretched, so caution before chasing it.
  • MACD: a bullish MACD crossover alongside an upper-band break can point to a stronger trend; the mirror image applies on breakdowns.

We’d add one more check for Indian stocks: look at the calendar. A 20-day high made on results day or right after a big corporate announcement carries different information from one that builds slowly over a week.

Where the Donchian channel lets you down

Investopedia lists the main weaknesses, and they line up with what we see on charts:

  • False breakouts: price clears the band and quickly reverses, leaving you with a small loss and a bruised ego. Our Step 2 would have been one without the close filter.
  • It lags: the channel only describes past highs and lows. It doesn’t predict anything, and in a very fast market its signals can arrive late.
  • Sideways markets: in a tight range, price touches both bands again and again, and a trend-following system keeps buying tops and selling bottoms.
  • Overreliance: treating every touch of a band as a signal, without checking the broader market, is a quick way to overtrade.
  • The wrong setting: a lookback that suits one stock can be useless on another.

The sideways problem is the big one. Trend-following systems tend to make their money in a handful of strong trends and lose small amounts in many chop phases in between. If you can’t sit through a run of small losses, a pure channel system will be hard to stick with, however logical it looks on paper.

A short checklist before acting on a breakout

  • Has the stock closed beyond the upper or lower line, not just traded through it?
  • Was the channel narrowing before the move, or was the stock already swinging wildly?
  • Does volume back up the move?
  • Is the bigger trend, on a moving average or a weekly chart, pointing the same way?
  • Where exactly is the stop: lower channel, middle line or a shorter exit channel? What’s the risk per share?
  • Have you sized the trade from that risk, not from how much you’d like to buy?

For how the channel fits alongside support and resistance, trend lines and momentum tools, see our technical analysis guide for Indian stocks.

The short version

The Donchian channel indicator plots the highest high and lowest low of the last N periods, usually 20, with a midpoint between them. A close above the upper line signals a possible uptrend and a close below the lower line a possible downtrend. Channel width tells you how volatile the stock has been, and a narrowing channel often comes before a breakout. Put your stop at the lower band, the middle line or a shorter exit channel, size the trade from that distance, and expect the channel to struggle whenever a stock goes sideways.

Disclaimer: This article is for information and education only and is not investment advice or a recommendation to buy or sell any security. Sahyadri Forgings and all prices in the worked example are hypothetical. Indicator definitions, default settings and signal rules are from the Investopedia and TradingView pages linked above. Trading involves risk; consult a SEBI-registered investment adviser before making investment decisions.

Leave a Reply

Join the conversation

Commenting is open to registered readers. Sign up with just your email — no password needed, and it takes under a minute.

Sign up to comment Log in