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

Double Donchian breakout

A two-channel trend-following system on NIFTY futures using 15-minute bars. A wide 38-bar Donchian channel decides entries, and a narrow 6-bar channel acts as a trailing exit. By default positions are held overnight and across days until the short channel is broken against them, so a single trade can ride a multi-day trend.
Buys or sells NIFTY futures when price breaks the 38-bar channel on 15-minute bars and exits when it breaks the 6-bar channel the other way, holding overnight if needed.
Market viewEither direction (follows the move)
TradesNIFTY near-month futures, 1 lot
RiskOpen-ended (loss not capped by the structure)
CapitalFutures margin
SuitsIntermediate
Trades a month19.3
Typical hold3.3 hours
Profitable months7 of 12
Longest losing run7 trades
Made money inTrend days that close near the high or lowMarkets below their 20-day average
Lost money inChoppy wide-range daysDays that open with a gap up
Default settings
Symbol
Outer
Inner
Bar minutes
Mode
Roll time
Last entry
Square off
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 beyond the 38-bar channel of 15-minute bars, when flat and the break is fresh
Legs
BUY FUT · Near month (break above the 38-bar high) · Near-month future, rolled at expiry · 1 lotSELL FUT · Near month (break below the 38-bar low) · Near-month future, rolled at expiry · 1 lot
Exits
trail First tick through the 6-bar channel the other wayroll On futures expiry day, closed at 15:15 and reopened in the next month at the next open
Re-entry
Yes - any fresh outer-channel break when flat, including straight after an exit
Bars
BAR_MINUTES bars of the near-month future, anchored at 09:15, continuous across sessions.
Channels
outer = highest high / lowest low of the OUTER bars before the current one; inner = the same over INNER bars.
Entry
flat - the first tick that trades above the outer high buys LOTS, below the outer low sells. Only a fresh breakout counts: the bar before must not already have been beyond its own outer channel.
Exit
long - the first tick below the inner low (it trails up as the trend runs); short - above the inner high. A tick that exits can be followed by an opposite entry in the same bar.
Mode
MODE "positional" holds overnight; on the futures expiry day the position is closed at ROLL_TIME ("monthly roll") and re-opened on the new near month at the next session's first tick. MODE "intraday" takes entries up to LAST_ENTRY and squares off at SQUARE_OFF.
End
closed at the last tick of the test window.
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 232 trades · before costs
Net P&L+₹2,15,697
Win rate48%
Max drawdown−₹1,29,864
Avg per trade+₹930
Profit factor1.37
Worst trade−₹23,985
3

Where it made and lost money

In this test, trend days that closed near the high or low made ₹3,37,102 over 76 trades with a 68% win rate, more than the whole year's profit, while choppy wide-range days lost ₹74,134 over 63 and quiet ones ₹47,271 over 93. A Donchian breakout needs the move to keep going, and the 6-bar exit gives back little once it stalls. The system also did far better in falling markets: below the 20-day average it made ₹2,21,977 over 107 trades, while above it lost ₹6,281 over 125, and sessions that closed below their open made ₹2,97,247. Gap-up opens lost ₹80,943 over 35 trades.

Kind of session on the entry day
Quiet session (range under 0.75%)−₹47,27193 trades41% won
Trend day (closed near the high or low)+₹3,37,10276 trades68% won
Choppy day (wide range, closed mid-range)−₹74,13463 trades35% won
Session direction on the entry day
NIFTY closed above its open−₹81,550105 trades39% won
NIFTY closed below its open+₹2,97,247127 trades56% won
How the entry day opened
Gap up of 0.4% or more−₹80,94335 trades31% won
Flat open+₹1,70,325160 trades51% won
Gap down of 0.4% or more+₹1,26,31537 trades51% won
Trend going in
Uptrend (NIFTY above its 20-day average)−₹6,281125 trades46% won
Downtrend (NIFTY below its 20-day average)+₹2,21,977107 trades50% won
Day of the week
Monday+₹89,98248 trades60% won
Tuesday+₹51,92248 trades44% won
Wednesday−₹31,61139 trades44% won
Thursday−₹23,40644 trades41% won
Friday+₹1,06,88552 trades50% won
Expiry day (NIFTY weekly)
Expiry day+₹44,46752 trades42% won
Other days+₹1,71,230180 trades50% won
India VIX the evening before
VIX below 11.5 (calm)+₹97,23358 trades59% won
VIX 11.5-14.5 (normal)+₹30,298105 trades47% won
VIX above 14.5 (nervous)+₹88,16669 trades42% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Build 15-minute bars of the near-month NIFTY future, running continuously across sessions.
  2. The outer channel is the highest high and lowest low of the previous 38 bars; the inner channel uses the previous 6 bars.
  3. When flat, buy one lot on the first tick above the outer high, or sell on the first tick below the outer low, but only if the prior bar was not already outside its channel.
  4. Exit a long on the first tick below the inner 6-bar low, and a short on the first tick above the inner 6-bar high; that exit trails the trend.
  5. An exit can be followed straight away by an entry the other way if the opposite outer level breaks.
  6. Hold overnight; on futures expiry day close at 15:15 and reopen the same side in the next month at the following session's first tick.
  7. Channels restart with each new contract, so the roll itself never creates a signal.

Why traders use it

Donchian channels are the core of classic trend-following: buy new highs, sell new lows, and let a trailing level decide when the move is over. Using a long channel to enter and a short one to exit means entries need a real break while exits come quickly once momentum fades. The rules have no indicators to tune beyond two lookbacks, and holding positions overnight gives the system room to catch the occasional large, multi-day trend that pays for the many small losses.

Works best whenIn this test, strong one-way sessions that closed near their high or low, especially in falling markets below the 20-day average, where short breakouts ran far before the 6-bar channel stopped them.
Struggles whenChoppy wide-range days and quiet sessions, where breakouts reverse within a few bars, and gap-up opens, which were the worst opening group.

The year in plain words

Held overnight on NIFTY futures from 1 Oct 2025 to 30 Sep 2026 with default settings, the system made 232 trades, won 48%, and earned ₹2,15,697 before costs with a profit factor of 1.37. Wins averaged ₹7,150 against ₹4,876 for losses, the classic trend-following shape. The year leaned heavily on March, which alone made ₹1,48,783, while April to August were mostly negative. After ₹20 per order and bid-ask slippage the profit was ₹1,51,579. The before-costs drawdown of ₹1,29,864 shows how long the flat spells can be.

What the settings do

OuterThe entry channel length in bars. Longer channels wait for a bigger breakout and trade less; shorter ones trade more and are fooled more often.InnerThe exit channel length in bars. A short exit channel cuts losers and locks gains quickly; a longer one gives trends more room but returns more profit.Bar minutesThe bar length used for both channels. Shorter bars make the same lookback cover less time and react faster.ModePositional holds trades overnight and across days; intraday only enters until the last entry time and squares off each day.Roll timeIn positional mode, when an open trade is closed on futures expiry day before being reopened in the next month.Last entryIn intraday mode, the latest time a new breakout can be taken.Square offIn intraday mode, when any open trade is closed.

Risks

  • Positions are held overnight, so gaps can cause losses well beyond the 6-bar exit level; the worst single trade lost ₹23,985.
  • Profits depend on a few large trends; missing one, as the March result shows, would change the year completely.
  • Long drawdowns between trends are normal and can last months.
  • Overnight futures need full margin, and the roll each month adds two more orders of cost.

Who it suits

Patient trend-followers who can hold futures overnight with full margin, run the rules mechanically through losing months, and accept that a large part of a year's profit may come from one or two trends.

5

Questions traders ask

What is a double Donchian strategy?

It uses two Donchian channels: a long one, here 38 bars, to enter on a breakout to a new high or low, and a short one, here 6 bars, to exit when the price breaks back through the recent range. The short channel trails the trade as the trend extends.

Is the double Donchian strategy profitable on NIFTY?

In this backtest on 15-minute NIFTY futures from 1 Oct 2025 to 30 Sep 2026 it made ₹2,15,697 before costs and ₹1,51,579 after ₹20 per order and bid-ask slippage, with statutory charges extra. Most of that came from March. Past results do not guarantee future ones.

Does it hold positions overnight?

Yes, by default. Trades stay open until the 6-bar channel breaks against them, which can take several days. On futures expiry day an open trade is closed at 15:15 and reopened in the next month. An intraday mode is available that squares off every afternoon.

What does a fresh breakout mean here?

The bar before the signal must not already have been beyond its own outer channel. This stops the system from entering late into a move that broke out earlier and is already stretched.

6

Before you rely on it

WHERE THE RULES WERE UNCLEAR · OUR CHOICESThe source does not say whether trades are held overnight; positional is the default, intraday a setting (spec interpretation). The source's "daily-ish" variant is OUTER 79 / INNER 24. Rolled series: the channels restart on each new futures contract (no entry until OUTER bars of it, no exit until INNER bars), so the roll jump is never a breakout. channel levels come from completed bars; entries and exits fill at the tick that crosses them. Known pitfalls (source): parameters optimised on NIFTY / BANKNIFTY spot 2009-14 (40-45% win rate claimed); a commenter lost money with a one-bar trade delay. Gross of costs.
Also known asdouble donchiandual channel breakout
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.