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 Nifty IT from Dec 2005 to Nov 2026: CAGR −0.6%, max drawdown 28.6%, win rate 48.7% over 78 trades, vs buy-and-hold 10.7%.
As of · Hypothetical backtest by Jivani Markets on Nifty IT daily data; re-run weekly
| Measure | NR7 Breakout | Buy and hold Nifty IT |
|---|---|---|
| CAGR (annual return) | −0.6% | 10.7% |
| Total return | −12% | 736% |
| Max drawdown | −28.6% | −65.7% |
| ₹10 lakh became | ₹8.8 lakh | ₹83.6 lakh |
| Win rate | 48.7% | — |
| Trades (closed) | 78 | — |
| Winning / losing trades | 38 / 40 | — |
| Profit factor | 0.89 | — |
| Sharpe ratio | -0.04 | — |
| Volatility (annual) | 7.9% | — |
| Time in the market | 15% | 100% |
| Average holding | 10 sessions | — |
| Charges and slippage paid | ₹3,59,718 | — |
# NR7 Breakout on Nifty IT
universe("NIFTY IT", asset="index")
settings(
timeframe="1d",
entry_timing="next_open",
cost_model="retail",
slippage_model="tiered",
start="2006-01-01",
benchmark="NIFTY IT",
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.0% | −14.3% |
| 2025 | −0.1% | −12.6% |
| 2024 | −6.5% | +22.0% |
| 2023 | +9.5% | +24.1% |
| 2022 | −4.8% | −26.0% |
| 2021 | +5.9% | +59.6% |
| 2020 | +10.1% | +54.9% |
| 2019 | −3.5% | +8.4% |
| 2018 | −3.4% | +23.8% |
| 2017 | −1.7% | +12.2% |
| 2016 | −1.7% | −7.3% |
| 2015 | −5.0% | 0.0% |
| 2014 | −2.1% | +17.8% |
| 2013 | +23.5% | +58.0% |
| 2012 | −11.4% | −1.9% |
| 2011 | −8.0% | −18.1% |
| 2010 | −7.4% | +28.8% |
| 2009 | +15.2% | +166.0% |
| 2008 | 0.0% | −54.6% |
| 2007 | −10.8% | −11.4% |
| 2006 | −4.1% | +39.9% |
| Bought | At | Sold | At | Return |
|---|---|---|---|---|
| 30 Oct 2026 | 32,035.48 | 9 Nov 2026 (end of test) | 32,452.67 | +1.1% |
| 15 Dec 2025 | 38,183.14 | 30 Dec 2025 | 38,224.13 | −0.1% |
| 26 Nov 2024 | 43,828.84 | 10 Dec 2024 | 44,781.23 | +1.9% |
| 10 Oct 2024 | 42,865.25 | 24 Oct 2024 | 41,866.36 | −2.5% |
| 23 Apr 2024 | 33,803.48 | 8 May 2024 | 33,375.01 | −1.5% |
| 19 Feb 2024 | 38,584.74 | 2 Mar 2024 | 37,638.81 | −2.7% |
| 20 Jan 2024 | 37,315.69 | 6 Feb 2024 | 37,211.25 | −0.5% |
| 28 Dec 2023 | 35,865.72 | 11 Jan 2024 | 34,925.83 | −2.8% |
| 6 Nov 2023 | 31,001.78 | 21 Nov 2023 | 32,458.99 | +4.5% |
| 31 Aug 2023 | 31,221.86 | 14 Sept 2023 | 32,941.96 | +5.3% |
From 30 Dec 2005 to 9 Nov 2026, these NR7 Breakout rules on the Nifty IT index returned a CAGR of −0.6% after costs, less than the 10.7% a year from buying and holding the index, with a worst fall of 28.6% against 65.7% for buy-and-hold. It made 78 trades and was invested 15% 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%: 38 of 78 closed trades made money after charges and slippage. On a ₹10 lakh account the average winning trade made ₹25,333 and the average losing trade lost ₹26,962; the profit factor (gross profit ÷ gross loss) was 0.89. 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 Nifty IT index over the same dates returned 10.7% a year with a worst fall of 65.7%; the strategy returned −0.6% a year with a worst fall of 28.6%. 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.