Buy when 14-day RSI climbs back above 30 from oversold; sell when it reaches 70.
Backtest of RSI 30/70 on Bank Nifty from Dec 2005 to Nov 2026: CAGR 2.7%, max drawdown 66.2%, win rate 81.8% over 22 trades, vs buy-and-hold 13.1%.
As of · Hypothetical backtest by Jivani Markets on Bank Nifty daily data; re-run weekly
| Measure | RSI 30/70 | Buy and hold Bank Nifty |
|---|---|---|
| CAGR (annual return) | 2.7% | 13.1% |
| Total return | 74% | 1211% |
| Max drawdown | −66.2% | −68.8% |
| ₹10 lakh became | ₹17.3 lakh | ₹131.1 lakh |
| Win rate | 81.8% | — |
| Trades (closed) | 22 | — |
| Winning / losing trades | 18 / 4 | — |
| Profit factor | 1.86 | — |
| Sharpe ratio | 0.24 | — |
| Volatility (annual) | 20.1% | — |
| Time in the market | 32% | 100% |
| Average holding | 75 sessions | — |
| Charges and slippage paid | ₹1,27,009 | — |
# RSI 30/70 on Bank Nifty
universe("NIFTY BANK", asset="index")
settings(
timeframe="1d",
entry_timing="next_open",
cost_model="retail",
slippage_model="tiered",
start="2006-01-01",
benchmark="NIFTY BANK",
allow_short=False,
participation_ignore_zero_volume=True,
)
exit_when(crosses_above(rsi(14), 70))
buy(crosses_above(rsi(14), 30), size=percent_of_equity(100))
| Year | Strategy | Buy and hold |
|---|---|---|
| 2026* | +10.2% | +0.3% |
| 2025 | +11.1% | +17.1% |
| 2024 | 0.0% | +5.3% |
| 2023 | +14.1% | +12.3% |
| 2022 | +3.3% | +21.1% |
| 2021 | −2.4% | +13.5% |
| 2020 | +5.1% | −2.8% |
| 2019 | +9.2% | +18.4% |
| 2018 | +12.5% | +6.3% |
| 2017 | 0.0% | +40.5% |
| 2016 | −1.3% | +7.4% |
| 2015 | −1.4% | −9.7% |
| 2014 | +14.8% | +64.6% |
| 2013 | +6.7% | −8.7% |
| 2012 | +35.0% | +56.5% |
| 2011 | −23.6% | −32.4% |
| 2010 | +12.5% | +30.6% |
| 2009 | +1.3% | +80.5% |
| 2008 | −46.7% | −49.3% |
| 2007 | +13.8% | +64.2% |
| 2006 | +12.5% | +31.9% |
| Bought | At | Sold | At | Return |
|---|---|---|---|---|
| 1 Oct 2026 | 54,664.93 | 9 Nov 2026 (end of test) | 59,711.38 | +9.0% |
| 11 Mar 2026 | 56,875.58 | 19 Jun 2026 | 57,668.32 | +1.2% |
| 2 Sept 2025 | 54,119.31 | 17 Oct 2025 | 57,276.85 | +5.6% |
| 15 Jan 2025 | 48,906 | 25 Mar 2025 | 51,796.39 | +5.7% |
| 30 Oct 2023 | 42,785.48 | 5 Dec 2023 | 46,825.55 | +9.2% |
| 31 Jan 2023 | 40,624.7 | 25 Apr 2023 | 42,667.5 | +4.8% |
| 2 Dec 2021 | 36,336.27 | 25 Jul 2022 | 36,711.55 | +0.8% |
| 28 Sept 2020 | 21,183.78 | 6 Nov 2020 | 26,234.69 | +23.6% |
| 4 Mar 2020 | 29,296.83 | 31 Aug 2020 | 25,001.24 | −14.9% |
| 29 Jul 2019 | 29,627.82 | 13 Nov 2019 | 31,038.12 | +4.5% |
From 30 Dec 2005 to 9 Nov 2026, these RSI 30/70 rules on the Bank Nifty index returned a CAGR of 2.7% after costs, less than the 13.1% a year from buying and holding the index, with a worst fall of 66.2% against 68.8% for buy-and-hold. It made 22 trades and was invested 32% of the time. This is a hypothetical test on past data, not a recommendation, and past performance is not indicative of future results.
81.8%: 18 of 22 closed trades made money after charges and slippage. On a ₹10 lakh account the average winning trade made ₹88,443 and the average losing trade lost ₹2,14,253; the profit factor (gross profit ÷ gross loss) was 1.86. A high win rate with small wins can still lose money, so read it with the CAGR and drawdown.
Buy: RSI(14) crosses above 30. Sell: RSI(14) crosses above 70. 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 Bank Nifty index over the same dates returned 13.1% a year with a worst fall of 68.8%; the strategy returned 2.7% a year with a worst fall of 66.2%. 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.