Buy when Williams %R (14) climbs back above −80; sell when it reaches −20.
Williams %R Oversold on Bank Nifty from Dec 2005 to Nov 2026: CAGR −0.4%, max drawdown 50.3%, win rate 59.0% over 139 trades, vs buy-and-hold 13.1%.
As of · Hypothetical backtest by Jivani Markets on Bank Nifty daily data; re-run weekly
| Measure | Williams %R Oversold | Buy and hold Bank Nifty |
|---|---|---|
| CAGR (annual return) | −0.4% | 13.1% |
| Total return | −7% | 1211% |
| Max drawdown | −50.3% | −68.8% |
| ₹10 lakh became | ₹9.3 lakh | ₹131.1 lakh |
| Win rate | 59.0% | — |
| Trades (closed) | 139 | — |
| Winning / losing trades | 82 / 57 | — |
| Profit factor | 0.97 | — |
| Sharpe ratio | 0.07 | — |
| Volatility (annual) | 18.1% | — |
| Time in the market | 35% | 100% |
| Average holding | 13 sessions | — |
| Charges and slippage paid | ₹7,50,815 | — |
# Williams %R Oversold 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(williams_r(14), -20))
buy(crosses_above(williams_r(14), -80), size=percent_of_equity(100))
| Year | Strategy | Buy and hold |
|---|---|---|
| 2026* | −6.2% | +0.3% |
| 2025 | −5.0% | +17.1% |
| 2024 | +5.4% | +5.3% |
| 2023 | +1.3% | +12.3% |
| 2022 | −0.7% | +21.1% |
| 2021 | +0.1% | +13.5% |
| 2020 | −7.2% | −2.8% |
| 2019 | −0.5% | +18.4% |
| 2018 | −4.9% | +6.3% |
| 2017 | +7.2% | +40.5% |
| 2016 | −1.6% | +7.4% |
| 2015 | −2.1% | −9.7% |
| 2014 | +15.6% | +64.6% |
| 2013 | −18.7% | −8.7% |
| 2012 | +11.2% | +56.5% |
| 2011 | −9.0% | −32.4% |
| 2010 | −9.8% | +30.6% |
| 2009 | +38.0% | +80.5% |
| 2008 | −13.8% | −49.3% |
| 2007 | +10.8% | +64.2% |
| 2006 | −4.2% | +31.9% |
| Bought | At | Sold | At | Return |
|---|---|---|---|---|
| 27 Oct 2026 | 54,502.33 | 5 Nov 2026 | 57,017.15 | +4.4% |
| 15 Sept 2026 | 56,969.58 | 16 Oct 2026 | 55,843.26 | −2.2% |
| 21 Aug 2026 | 57,699.62 | 1 Sept 2026 | 57,473.96 | −0.6% |
| 27 Jul 2026 | 57,202.48 | 4 Aug 2026 | 57,981.85 | +1.1% |
| 10 Jul 2026 | 57,678.89 | 20 Jul 2026 | 57,651.64 | −0.3% |
| 7 May 2026 | 56,198.17 | 10 Jun 2026 | 55,027.83 | −2.3% |
| 6 Mar 2026 | 58,717.55 | 9 Apr 2026 | 55,422.69 | −5.8% |
| 28 Jan 2026 | 59,665.01 | 30 Jan 2026 | 59,452.94 | −0.6% |
| 22 Dec 2025 | 59,313.59 | 1 Jan 2026 | 59,585.29 | +0.2% |
| 1 Oct 2025 | 54,735.88 | 6 Oct 2025 | 55,750.95 | +1.6% |
From 30 Dec 2005 to 9 Nov 2026, these Williams %R Oversold rules on the Bank Nifty index returned a CAGR of −0.4% after costs, less than the 13.1% a year from buying and holding the index, with a worst fall of 50.3% against 68.8% for buy-and-hold. It made 139 trades and was invested 35% of the time. This is a hypothetical test on past data, not a recommendation, and past performance is not indicative of future results.
59.0%: 82 of 139 closed trades made money after charges and slippage. On a ₹10 lakh account the average winning trade made ₹30,413 and the average losing trade lost ₹45,016; the profit factor (gross profit ÷ gross loss) was 0.97. A high win rate with small wins can still lose money, so read it with the CAGR and drawdown.
Buy: Williams %R(14) crosses above −80. Sell: Williams %R(14) crosses above −20. 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 −0.4% a year with a worst fall of 50.3%. 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.