QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free
Futures · technicalPositionalNIFTYlow complexity

Donchian 20-day breakout

The Donchian 20-day breakout buys NIFTY futures when a daily close clears the highest high of the previous 20 sessions and sells when a close falls below the lowest low of the previous 20. It is a classic trend-following channel system, a lighter cousin of the old turtle rules, and this version trades the long side only and holds positions for days or weeks.
Buys NIFTY futures after a daily close above the 20-day high and holds until a close below the 20-day low, rolling the position each month.
Market viewBullish
TradesNIFTY near-month futures, 1 lot, long only
RiskOpen-ended (loss not capped by the structure)
CapitalFutures margin
SuitsIntermediate
Trades a month0.8
Typical hold21 days
Profitable months2 of 12
Longest losing run7 trades
Made money inNIFTY rising over 1% while held (2 trades)
Lost money inNIFTY falling over 1% while heldBuying after a gap-up open
Default settings
Symbol
Period
Exit period
Roll time
Lots
Backtest this strategy →Change any setting, pick your own period and run it in the Quantsapp web app. Backtesting is part of the Max plan. Pro+ members can use it now as a free trial.
1

How it trades

What it trades
Universe
NIFTY Positional · 1 Oct 25 → 30 Sep 26
Enters
First tick of the session after a daily close above the prior 20-day high
Legs
BUY FUT · near month · Near month, rolled each expiry · 1 lot
Exits
signal Daily close below the prior 20-day low: sell at the next session's first tickroll Futures expiry day at 15:15: close, re-buy the new month next sessiontime Anything open at the end of the test window
Re-entry
Only on a fresh close above the 20-day high after an exit
Channel
daily bars of the rolled near-month future. Upper = highest high of the PERIOD sessions before the bar (shifted one bar, so a bar never breaks a channel that includes itself); lower = lowest low of the EXIT_PERIOD sessions before the bar.
Entry
a daily close crosses above the upper channel (previous close was not above its own upper) -> buy LOTS at the next session's first tick.
Exit
a daily close below the lower channel -> sell at the next session's first tick. The channel low trails up as the trend runs. No other stop, no target.
Roll
on the futures expiry day the long is closed at ROLL_TIME ("monthly roll") and re-bought on the new near month at the next session's first tick.
Re-entry
only on a new cross above the upper channel.
End
closed at the last tick of the test window.
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 10 trades · before costs
Net P&L−₹1,75,137
Win rate20%
Max drawdown−₹1,96,790
Avg per trade−₹17,514
Profit factor0.12
Worst trade−₹58,903
3

Where it made and lost money

With only 10 trades the evidence is thin, but it is one-sided. The two trades held while NIFTY rose more than 1% made ₹23,238; the five held while it fell more than 1% lost ₹1,64,775. Eight of the ten trades were entered on a session that opened with a gap up of 0.4% or more, and those lost ₹1,86,650 in this test. That follows from the code: the signal is a close at a new 20-day high, and the buy happens at the next session's first tick, so a strong close followed by a gap up means paying a stretched price just before a pullback, with the exit a full 20-day low away.

India VIX the evening before
VIX below 11.5 (calm)−₹65,1873 trades33% won
VIX 11.5-14.5 (normal)−₹42,1555 trades20% won
VIX above 14.5 (nervous)−₹67,7952 trades0% won
Kind of session on the entry day
Quiet session (range under 0.75%)−₹1,16,6876 trades17% won
Trend day (closed near the high or low)−₹36,0322 trades0% won
Choppy day (wide range, closed mid-range)−₹22,4182 trades50% won
Market while the trade was held
NIFTY rose over 1% while held+₹23,2382 trades100% won
NIFTY within ±1% while held−₹33,6013 trades0% won
NIFTY fell over 1% while held−₹1,64,7755 trades0% won
How the entry day opened
Gap up of 0.4% or more−₹1,86,6508 trades12% won
Flat open+₹21,6521 trades100% won
Gap down of 0.4% or more−₹10,1401 trades0% won
Session direction on the entry day
NIFTY closed above its open−₹1,23,4758 trades25% won
NIFTY closed below its open−₹51,6622 trades0% won
Trend going in
Uptrend (NIFTY above its 20-day average)−₹77,5766 trades17% won
Downtrend (NIFTY below its 20-day average)−₹97,5614 trades25% won
Day of the week
Wednesday−₹1,62,9257 trades14% won
Thursday−₹23,7251 trades0% won
Friday+₹11,5122 trades50% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Each day, build two lines from the near-month NIFTY future's daily bars: the highest high and the lowest low of the 20 sessions before the latest completed bar.
  2. If yesterday's close moved above the upper line (and the close before it was not above its own line), buy one lot at the first tick of today's session.
  3. Hold with no fixed stop or target; the lower line trails upward as the trend runs.
  4. When a daily close drops below the lower line, sell at the next session's first tick.
  5. On each futures expiry day, close the long at 15:15 and buy the new near month at the next session's open, so each roll shows as a separate trade.
  6. After an exit, wait for a fresh close above the upper line before buying again.

Why traders use it

A close above a 20-day high says buyers have pushed past every level of the last month, which trend followers read as the start of a fresh leg. The exit channel lets the trade breathe: it only closes when the market makes a new 20-day low, so a strong trend can be held for weeks. The rules are mechanical, need one check after the close, and have been studied for decades, which keeps them popular as a first systematic futures strategy.

Works best whenNIFTY breaks to a new monthly high and keeps climbing for several weeks without a deep pullback, so the trailing 20-day low rises well above the entry before any reversal.
Struggles whenChoppy or falling markets, where a close above the 20-day high is followed by a slide back through the whole channel, so the exit comes far below the entry. Being long only, it earns nothing from downtrends.

The year in plain words

With the default 20/20 channel on NIFTY from 1 Oct 2025 to 30 Sep 2026, the strategy logged 10 trades, of which 7 were monthly roll closes and 3 were exits on a close below the 20-day low. Only 2 made money. The net result was a ₹1,75,137 loss before costs and ₹1,76,498 after ₹20 per order and slippage, with a ₹1,96,790 drawdown before costs. October 2025 gained ₹21,652, but January lost ₹58,903 and May ₹44,070. Breakouts in this period mostly failed to follow through, so the rules kept buying highs that did not last.

What the settings do

PeriodHow many sessions the entry high looks back over. A shorter period signals more often and earlier; a longer one, such as 55, waits for bigger breakouts and trades less.Exit periodHow many sessions the exit low looks back over. A shorter exit channel, such as 10, gets out sooner and gives back less, but is shaken out of trends more easily.Roll timeThe time on futures expiry day when the long is closed so it can be re-bought in the next month. Moving it changes only the price at which the old contract is sold.

Risks

  • The exit is a full 20-day low, so a failed breakout can give back a whole month's range before the position is closed.
  • Positions are held overnight with no stop, so gaps on news hit the full futures position.
  • The daily bars come from the rolled future without adjustment, so a roll's price jump can itself look like a breakout.
  • With only a handful of signals a year, one or two failed trades decide the result.

Who it suits

Traders who prefer a few positional futures trades a year, can carry full futures margin overnight, and can sit through large open losses while waiting for a trend. It needs patience with long losing runs.

5

Questions traders ask

What is the Donchian channel breakout strategy?

It draws a channel from the highest high and lowest low of the last N sessions. A close above the top line is a buy signal and a close below the bottom line is the exit. This version uses 20 sessions for both lines, trades NIFTY futures, and only goes long.

Is the Donchian 20-day breakout profitable on NIFTY?

Not in this backtest. From 1 Oct 2025 to 30 Sep 2026 it lost ₹1,75,137 before costs and ₹1,76,498 after ₹20 per order and slippage, winning 2 of 10 trades. A different year with a long steady trend could look very different, and past results do not guarantee future ones.

Why does the trade count include monthly rolls?

Futures expire every month, so a long held across an expiry is sold in the old contract and bought in the new one. Each piece is counted as its own trade, which is why 7 of the 10 trades ended with a monthly roll rather than a channel exit.

What is the difference between the 20/10 and 55/20 versions?

They are the two classic turtle settings. 20/10 enters on a one-month high and exits on a two-week low, reacting faster. 55/20 waits for a roughly quarter-year high and exits on a one-month low, trading far less often but aiming at bigger trends.

6

Before you rely on it

WATCH OUTthe template is a single-instrument demo with no costs. The daily bars are the rolled future's, unadjusted - a monthly roll's basis jump can itself print a "breakout" close. Gross of costs.
WHERE THE RULES WERE UNCLEAR · OUR CHOICESThe template fills at the signal bar's close; here the trade is at the next session's first tick.
Also known asdonchian channel breakoutturtle-lite
Backtests run on historical NSE data with fills at the last traded price. "Before costs" excludes brokerage, taxes and slippage. Quantsapp is not recommending any strategy; it is just a backtesting utility. Past results are not a promise of future returns.

Log in or sign up

Enter your mobile number. New to Quantsapp? The same OTP creates your free account.

+91

By continuing you agree to the Terms of Use and Privacy Policy.