After the narrowest-range day of the last seven, buy a close above that day's high in an uptrend; hold for 10 sessions.
Backtest of NR7 Breakout on Sensex from Dec 2005 to Nov 2026: CAGR −3.0%, max drawdown 57.0%, win rate 48.7% over 154 trades, vs buy-and-hold 10.9%.
As of · Hypothetical backtest by Jivani Markets on Sensex daily data; re-run weekly
| Measure | NR7 Breakout | Buy and hold Sensex |
|---|---|---|
| CAGR (annual return) | −3.0% | 10.9% |
| Total return | −47% | 764% |
| Max drawdown | −57.0% | −60.9% |
| ₹10 lakh became | ₹5.3 lakh | ₹86.4 lakh |
| Win rate | 48.7% | — |
| Trades (closed) | 154 | — |
| Winning / losing trades | 75 / 79 | — |
| Profit factor | 0.70 | — |
| Sharpe ratio | -0.32 | — |
| Volatility (annual) | 8.5% | — |
| Time in the market | 30% | 100% |
| Average holding | 10 sessions | — |
| Charges and slippage paid | ₹5,29,830 | — |
# NR7 Breakout on Sensex
universe("SENSEX", asset="index")
settings(
timeframe="1d",
entry_timing="next_open",
cost_model="retail",
slippage_model="tiered",
start="2006-01-01",
benchmark="SENSEX",
allow_short=False,
participation_ignore_zero_volume=True,
)
time_exit(bars=10)
buy(all_of(recently(nr7(), 1), close() > high().shift(1), close() > sma(200)), size=percent_of_equity(100))
| Year | Strategy | Buy and hold |
|---|---|---|
| 2026* | −1.5% | −4.8% |
| 2025 | −3.2% | +9.1% |
| 2024 | +4.3% | +8.2% |
| 2023 | −4.9% | +18.7% |
| 2022 | −10.4% | +4.4% |
| 2021 | +10.2% | +22.0% |
| 2020 | +9.9% | +15.8% |
| 2019 | −10.0% | +14.4% |
| 2018 | −1.2% | +5.9% |
| 2017 | +0.5% | +27.9% |
| 2016 | −6.7% | +1.9% |
| 2015 | −6.7% | −5.0% |
| 2014 | −3.2% | +29.9% |
| 2013 | −6.8% | +9.0% |
| 2012 | +4.3% | +25.7% |
| 2011 | −10.9% | −24.6% |
| 2010 | −10.2% | +17.4% |
| 2009 | +10.7% | +81.0% |
| 2008 | −12.5% | −52.5% |
| 2007 | −8.2% | +47.1% |
| 2006 | −1.6% | +46.8% |
| Bought | At | Sold | At | Return |
|---|---|---|---|---|
| 10 Feb 2026 | 84,336.32 | 24 Feb 2026 | 82,927.96 | −1.9% |
| 15 Dec 2025 | 85,019.09 | 30 Dec 2025 | 84,474.09 | −0.9% |
| 13 Nov 2025 | 84,652.68 | 27 Nov 2025 | 85,616.43 | +0.9% |
| 18 Sept 2025 | 83,233.59 | 3 Oct 2025 | 80,563.11 | −3.4% |
| 10 Jun 2025 | 82,767.69 | 24 Jun 2025 | 82,410.81 | −0.7% |
| 5 Dec 2024 | 81,304.52 | 19 Dec 2024 | 78,910.49 | −3.2% |
| 23 Aug 2024 | 81,287.4 | 6 Sept 2024 | 82,047.82 | +0.7% |
| 4 Jul 2024 | 80,442.27 | 19 Jul 2024 | 81,462.68 | +1.0% |
| 19 Jun 2024 | 77,659.53 | 3 Jul 2024 | 79,893.75 | +2.6% |
| 22 Mar 2024 | 72,340 | 9 Apr 2024 | 75,011.59 | +3.5% |
From 30 Dec 2005 to 9 Nov 2026, these NR7 Breakout rules on the Sensex index returned a CAGR of −3.0% after costs, less than the 10.9% a year from buying and holding the index, with a worst fall of 57.0% against 60.9% for buy-and-hold. It made 154 trades and was invested 30% of the time. This is a hypothetical test on past data, not a recommendation, and past performance is not indicative of future results.
48.7%: 75 of 154 closed trades made money after charges and slippage. On a ₹10 lakh account the average winning trade made ₹15,059 and the average losing trade lost ₹20,278; the profit factor (gross profit ÷ gross loss) was 0.70. A high win rate with small wins can still lose money, so read it with the CAGR and drawdown.
Buy: Yesterday was an NR7 day, today closes above its high, and the close is above the 200-day SMA. Sell: After 10 sessions. One position at a time with all of the capital; out of the market (in cash, earning nothing) between trades. Daily candles, long only, orders filled at the next session's open.
Buying and holding the Sensex index over the same dates returned 10.9% a year with a worst fall of 60.9%; the strategy returned −3.0% a year with a worst fall of 57.0%. A strategy that is out of the market part of the time usually gives up some return in rising years in exchange for missing part of the falls; the year-by-year table on this page shows where each one gained or lost.
Retail delivery charges (STT, exchange and SEBI fees, stamp duty and GST) and size-based slippage on every buy and sell; signals are read on the daily close and filled at the next session's open; price return only, so dividends are left out of both the strategy and buy-and-hold. An index cannot be bought directly; a fund or ETF that tracks it adds its own expense ratio and tracking error, and pays dividends this price-index test leaves out.
Yes. The "Run it yourself" link opens these exact rules in the Jivani Markets backtest builder, where you can change the indicator settings, add a stop-loss, pick other stocks or indices and re-run it on the latest data.