Buy when the close crosses above the Supertrend line (10-period ATR, multiplier 3); sell when it crosses back below.
Backtest of Supertrend (10, 3) on Nifty 50 from Dec 2005 to Nov 2026: CAGR 5.0%, max drawdown 34.6%, win rate 44.4% over 81 trades, vs buy-and-hold 11.0%.
As of · Hypothetical backtest by Jivani Markets on Nifty 50 daily data; re-run weekly
| Measure | Supertrend (10, 3) | Buy and hold Nifty 50 |
|---|---|---|
| CAGR (annual return) | 5.0% | 11.0% |
| Total return | 179% | 783% |
| Max drawdown | −34.6% | −59.9% |
| ₹10 lakh became | ₹27.9 lakh | ₹88.3 lakh |
| Win rate | 44.4% | — |
| Trades (closed) | 81 | — |
| Winning / losing trades | 36 / 45 | — |
| Profit factor | 1.54 | — |
| Sharpe ratio | 0.45 | — |
| Volatility (annual) | 13.1% | — |
| Time in the market | 57% | 100% |
| Average holding | 36 sessions | — |
| Charges and slippage paid | ₹9,11,584 | — |
# Supertrend (10, 3) on Nifty 50
universe("NIFTY 50", asset="index")
settings(
timeframe="1d",
entry_timing="next_open",
cost_model="retail",
slippage_model="tiered",
start="2006-01-01",
benchmark="NIFTY 50",
allow_short=False,
participation_ignore_zero_volume=True,
)
exit_when(crosses_below(close(), supertrend(10, multiplier=3, output="supertrend")))
buy(crosses_above(close(), supertrend(10, multiplier=3, output="supertrend")), size=percent_of_equity(100))
| Year | Strategy | Buy and hold |
|---|---|---|
| 2026* | −4.8% | −4.2% |
| 2025 | −3.1% | +10.5% |
| 2024 | −10.9% | +8.8% |
| 2023 | +8.7% | +20.0% |
| 2022 | −0.6% | +4.3% |
| 2021 | +13.9% | +24.1% |
| 2020 | +21.1% | +14.9% |
| 2019 | +1.9% | +12.0% |
| 2018 | +4.0% | +3.1% |
| 2017 | +17.5% | +28.6% |
| 2016 | +9.8% | +3.0% |
| 2015 | −18.3% | −4.1% |
| 2014 | +20.0% | +31.4% |
| 2013 | +0.0% | +6.8% |
| 2012 | +9.3% | +27.7% |
| 2011 | −24.2% | −24.6% |
| 2010 | +12.6% | +17.9% |
| 2009 | +51.1% | +75.8% |
| 2008 | −20.0% | −51.8% |
| 2007 | +25.7% | +54.8% |
| 2006 | +19.8% | +39.9% |
| Bought | At | Sold | At | Return |
|---|---|---|---|---|
| 19 Oct 2026 | 23,185.58 | 9 Nov 2026 (end of test) | 25,032.13 | +7.7% |
| 18 Jun 2026 | 24,109.91 | 3 Sept 2026 | 23,961.95 | −0.8% |
| 9 Apr 2026 | 23,944.91 | 13 May 2026 | 23,327.41 | −2.8% |
| 10 Feb 2026 | 25,961.53 | 4 Mar 2026 | 24,352.22 | −6.4% |
| 10 Oct 2025 | 25,205.4 | 12 Jan 2026 | 25,630.55 | +1.5% |
| 15 Sept 2025 | 25,156.58 | 26 Sept 2025 | 24,781.32 | −1.7% |
| 16 Apr 2025 | 23,379.12 | 28 Jul 2025 | 24,745.28 | +5.6% |
| 19 Mar 2025 | 22,909.26 | 7 Apr 2025 | 21,725.76 | −5.4% |
| 5 Feb 2025 | 23,837.45 | 17 Feb 2025 | 22,775.69 | −4.7% |
| 28 Nov 2024 | 24,310.56 | 23 Dec 2024 | 23,702.59 | −2.7% |
From 30 Dec 2005 to 9 Nov 2026, these Supertrend (10, 3) rules on the Nifty 50 index returned a CAGR of 5.0% after costs, less than the 11.0% a year from buying and holding the index, with a worst fall of 34.6% against 59.9% for buy-and-hold. It made 81 trades and was invested 57% of the time. This is a hypothetical test on past data, not a recommendation, and past performance is not indicative of future results.
44.4%: 36 of 81 closed trades made money after charges and slippage. On a ₹10 lakh account the average winning trade made ₹1,41,011 and the average losing trade lost ₹73,110; the profit factor (gross profit ÷ gross loss) was 1.54. A high win rate with small wins can still lose money, so read it with the CAGR and drawdown.
Buy: The close crosses above Supertrend(10, 3). Sell: The close crosses back below Supertrend(10, 3). 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 50 index over the same dates returned 11.0% a year with a worst fall of 59.9%; the strategy returned 5.0% a year with a worst fall of 34.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.