Buy when ADX is above 25 and +DI crosses above −DI; sell when +DI crosses back below −DI.
Backtest of ADX Trend on Nifty IT from Dec 2005 to Nov 2026: CAGR −0.6%, max drawdown 33.5%, win rate 24.3% over 37 trades, vs buy-and-hold 10.7%.
As of · Hypothetical backtest by Jivani Markets on Nifty IT daily data; re-run weekly
| Measure | ADX Trend | Buy and hold Nifty IT |
|---|---|---|
| CAGR (annual return) | −0.6% | 10.7% |
| Total return | −12% | 736% |
| Max drawdown | −33.5% | −65.7% |
| ₹10 lakh became | ₹8.8 lakh | ₹83.6 lakh |
| Win rate | 24.3% | — |
| Trades (closed) | 37 | — |
| Winning / losing trades | 9 / 28 | — |
| Profit factor | 0.80 | — |
| Sharpe ratio | -0.09 | — |
| Volatility (annual) | 5.5% | — |
| Time in the market | 7% | 100% |
| Average holding | 9 sessions | — |
| Charges and slippage paid | ₹2,07,135 | — |
# ADX Trend (+DI over −DI) 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,
)
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* | −7.0% | −14.3% |
| 2025 | −4.0% | −12.6% |
| 2024 | +0.7% | +22.0% |
| 2023 | 0.0% | +24.1% |
| 2022 | −0.1% | −26.0% |
| 2021 | −4.0% | +59.6% |
| 2020 | +2.4% | +54.9% |
| 2019 | −3.9% | +8.4% |
| 2018 | −7.1% | +23.8% |
| 2017 | −0.4% | +12.2% |
| 2016 | −2.6% | −7.3% |
| 2015 | −2.4% | 0.0% |
| 2014 | +1.3% | +17.8% |
| 2013 | −2.9% | +58.0% |
| 2012 | −5.6% | −1.9% |
| 2011 | −1.2% | −18.1% |
| 2010 | −0.5% | +28.8% |
| 2009 | +46.2% | +166.0% |
| 2008 | −4.8% | −54.6% |
| 2007 | −0.7% | −11.4% |
| 2006 | −6.5% | +39.9% |
| Bought | At | Sold | At | Return |
|---|---|---|---|---|
| 16 Apr 2026 | 31,881.35 | 23 Apr 2026 | 30,387.3 | −4.9% |
| 8 Apr 2026 | 31,834.38 | 15 Apr 2026 | 31,123.99 | −2.5% |
| 2 Sept 2025 | 35,820.65 | 5 Sept 2025 | 35,181.9 | −2.0% |
| 22 Aug 2025 | 35,789.05 | 1 Sept 2025 | 35,202.42 | −1.9% |
| 30 Apr 2025 | 35,967.57 | 8 May 2025 | 35,907.01 | −0.4% |
| 19 Aug 2024 | 41,002.31 | 19 Sept 2024 | 42,487.17 | +3.4% |
| 24 May 2024 | 34,075.69 | 30 May 2024 | 33,313.85 | −2.5% |
| 11 Mar 2022 | 35,256.61 | 14 Mar 2022 | 35,294.93 | −0.1% |
| 5 Oct 2021 | 35,030.87 | 26 Oct 2021 | 35,128.93 | +0.1% |
| 9 Feb 2021 | 25,972.7 | 18 Feb 2021 | 25,233.04 | −3.1% |
From 30 Dec 2005 to 9 Nov 2026, these ADX Trend 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 33.5% against 65.7% for buy-and-hold. It made 37 trades and was invested 7% of the time. This is a hypothetical test on past data, not a recommendation, and past performance is not indicative of future results.
24.3%: 9 of 37 closed trades made money after charges and slippage. On a ₹10 lakh account the average winning trade made ₹54,377 and the average losing trade lost ₹21,792; the profit factor (gross profit ÷ gross loss) was 0.80. 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 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 33.5%. 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.