Buy when the 50-day simple moving average crosses above the 200-day; sell on the death cross back below.
Backtest of Golden Cross on Nifty 50 from Dec 2005 to Nov 2026: CAGR 6.0%, max drawdown 43.0%, win rate 53.9% over 13 trades, vs buy-and-hold 11.0%.
As of · Hypothetical backtest by Jivani Markets on Nifty 50 daily data; re-run weekly
| Measure | Golden Cross | Buy and hold Nifty 50 |
|---|---|---|
| CAGR (annual return) | 6.0% | 11.0% |
| Total return | 240% | 783% |
| Max drawdown | −43.0% | −59.9% |
| ₹10 lakh became | ₹34 lakh | ₹88.3 lakh |
| Win rate | 53.9% | — |
| Trades (closed) | 13 | — |
| Winning / losing trades | 7 / 6 | — |
| Profit factor | 2.78 | — |
| Sharpe ratio | 0.49 | — |
| Volatility (annual) | 14.2% | — |
| Time in the market | 68% | 100% |
| Average holding | 269 sessions | — |
| Charges and slippage paid | ₹1,66,811 | — |
# Golden Cross (50/200 SMA) 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(sma(50), sma(200)))
buy(crosses_above(sma(50), sma(200)), size=percent_of_equity(100))
| Year | Strategy | Buy and hold |
|---|---|---|
| 2026* | −10.3% | −4.2% |
| 2025 | +3.7% | +10.5% |
| 2024 | +8.8% | +8.8% |
| 2023 | +13.8% | +20.0% |
| 2022 | +0.1% | +4.3% |
| 2021 | +24.1% | +24.1% |
| 2020 | −17.0% | +14.9% |
| 2019 | −2.7% | +12.0% |
| 2018 | +1.6% | +3.1% |
| 2017 | +17.6% | +28.6% |
| 2016 | −1.3% | +3.0% |
| 2015 | −3.8% | −4.1% |
| 2014 | +31.4% | +31.4% |
| 2013 | −6.9% | +6.8% |
| 2012 | +9.6% | +27.7% |
| 2011 | −10.7% | −24.6% |
| 2010 | +17.9% | +17.9% |
| 2009 | +25.9% | +75.8% |
| 2008 | −19.7% | −51.8% |
| 2007 | +54.6% | +54.8% |
| 2006 | +17.7% | +39.9% |
| Bought | At | Sold | At | Return |
|---|---|---|---|---|
| 5 Jun 2025 | 24,728.24 | 17 Mar 2026 | 23,457.96 | −5.3% |
| 2 Jun 2023 | 18,578.68 | 20 Jan 2025 | 23,255.46 | +24.9% |
| 12 Sept 2022 | 17,917.69 | 11 Apr 2023 | 17,678.24 | −1.6% |
| 24 Aug 2020 | 11,429.12 | 19 Apr 2022 | 17,233.06 | +50.5% |
| 11 Nov 2019 | 11,897.02 | 20 Mar 2020 | 8,272.02 | −30.7% |
| 18 Mar 2019 | 11,491.06 | 13 Sept 2019 | 10,970.32 | −4.8% |
| 22 Feb 2017 | 8,945 | 19 Nov 2018 | 10,715.15 | +19.6% |
| 1 Jun 2016 | 8,191.47 | 30 Dec 2016 | 8,107.47 | −1.3% |
| 3 Nov 2013 | 6,341.55 | 15 Jun 2015 | 7,974.62 | +25.5% |
| 30 Jul 2012 | 5,137.44 | 7 Aug 2013 | 5,540.98 | +7.6% |
From 30 Dec 2005 to 9 Nov 2026, these Golden Cross rules on the Nifty 50 index returned a CAGR of 6.0% after costs, less than the 11.0% a year from buying and holding the index, with a worst fall of 43.0% against 59.9% for buy-and-hold. It made 13 trades and was invested 68% of the time. This is a hypothetical test on past data, not a recommendation, and past performance is not indicative of future results.
53.9%: 7 of 13 closed trades made money after charges and slippage. On a ₹10 lakh account the average winning trade made ₹5,36,888 and the average losing trade lost ₹2,25,597; the profit factor (gross profit ÷ gross loss) was 2.78. A high win rate with small wins can still lose money, so read it with the CAGR and drawdown.
Buy: The 50-day SMA crosses above the 200-day SMA (a golden cross). Sell: The 50-day SMA crosses back below the 200-day SMA (a death cross). 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 6.0% a year with a worst fall of 43.0%. 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.