Buy when ADX is above 25 and +DI crosses above −DI; sell when +DI crosses back below −DI.
Backtest of ADX Trend on Bank Nifty from Dec 2005 to Nov 2026: CAGR 0.9%, max drawdown 40.7%, win rate 35.9% over 39 trades, vs buy-and-hold 13.1%.
As of · Hypothetical backtest by Jivani Markets on Bank Nifty daily data; re-run weekly
| Measure | ADX Trend | Buy and hold Bank Nifty |
|---|---|---|
| CAGR (annual return) | 0.9% | 13.1% |
| Total return | 20% | 1211% |
| Max drawdown | −40.7% | −68.8% |
| ₹10 lakh became | ₹12 lakh | ₹131.1 lakh |
| Win rate | 35.9% | — |
| Trades (closed) | 39 | — |
| Winning / losing trades | 14 / 25 | — |
| Profit factor | 1.23 | — |
| Sharpe ratio | 0.15 | — |
| Volatility (annual) | 8.4% | — |
| Time in the market | 11% | 100% |
| Average holding | 15 sessions | — |
| Charges and slippage paid | ₹2,46,114 | — |
# ADX Trend (+DI over −DI) 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_below(indicator("adx", output="plus_di", period=14), indicator("adx", output="minus_di", period=14)))
buy(all_of(adx(14) > 25, crosses_above(indicator("adx", output="plus_di", period=14), indicator("adx", output="minus_di", period=14))), size=percent_of_equity(100))
| Year | Strategy | Buy and hold |
|---|---|---|
| 2026* | 0.0% | +0.3% |
| 2025 | −2.0% | +17.1% |
| 2024 | 0.0% | +5.3% |
| 2023 | −0.6% | +12.3% |
| 2022 | −3.7% | +21.1% |
| 2021 | +6.9% | +13.5% |
| 2020 | −2.0% | −2.8% |
| 2019 | −7.5% | +18.4% |
| 2018 | +0.3% | +6.3% |
| 2017 | +26.1% | +40.5% |
| 2016 | +9.6% | +7.4% |
| 2015 | −2.1% | −9.7% |
| 2014 | −2.3% | +64.6% |
| 2013 | −2.1% | −8.7% |
| 2012 | −5.8% | +56.5% |
| 2011 | −11.0% | −32.4% |
| 2010 | −0.7% | +30.6% |
| 2009 | +3.1% | +80.5% |
| 2008 | −10.0% | −49.3% |
| 2007 | −2.5% | +64.2% |
| 2006 | +34.8% | +31.9% |
| Bought | At | Sold | At | Return |
|---|---|---|---|---|
| 13 Nov 2025 | 58,245.99 | 18 Dec 2025 | 58,624.63 | +0.4% |
| 5 Feb 2025 | 50,477.9 | 12 Feb 2025 | 49,328.15 | −2.5% |
| 25 Aug 2023 | 44,342.61 | 28 Aug 2023 | 44,187.27 | −0.6% |
| 7 Oct 2022 | 39,152.14 | 10 Oct 2022 | 38,583.59 | −1.7% |
| 1 Sept 2022 | 38,864.91 | 26 Sept 2022 | 38,969.31 | +0.0% |
| 6 Jan 2022 | 37,298.41 | 25 Jan 2022 | 36,543.15 | −2.3% |
| 2 Feb 2021 | 33,639.43 | 16 Mar 2021 | 35,298.97 | +4.7% |
| 28 Dec 2020 | 30,604.69 | 22 Jan 2021 | 32,039.87 | +4.5% |
| 4 May 2020 | 20,545.52 | 5 May 2020 | 20,117.08 | −2.3% |
| 10 Jan 2020 | 32,264.02 | 16 Jan 2020 | 31,762.83 | −1.8% |
From 30 Dec 2005 to 9 Nov 2026, these ADX Trend rules on the Bank Nifty index returned a CAGR of 0.9% after costs, less than the 13.1% a year from buying and holding the index, with a worst fall of 40.7% against 68.8% for buy-and-hold. It made 39 trades and was invested 11% of the time. This is a hypothetical test on past data, not a recommendation, and past performance is not indicative of future results.
35.9%: 14 of 39 closed trades made money after charges and slippage. On a ₹10 lakh account the average winning trade made ₹76,797 and the average losing trade lost ₹35,061; the profit factor (gross profit ÷ gross loss) was 1.23. A high win rate with small wins can still lose money, so read it with the CAGR and drawdown.
Buy: ADX(14) is above 25 and +DI crosses above −DI. Sell: +DI crosses back below −DI. 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.9% a year with a worst fall of 40.7%. 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.