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 Bank Nifty from Dec 2005 to Nov 2026: CAGR 7.0%, max drawdown 45.1%, win rate 60.0% over 15 trades, vs buy-and-hold 13.1%.
As of · Hypothetical backtest by Jivani Markets on Bank Nifty daily data; re-run weekly
| Measure | Golden Cross | Buy and hold Bank Nifty |
|---|---|---|
| CAGR (annual return) | 7.0% | 13.1% |
| Total return | 312% | 1211% |
| Max drawdown | −45.1% | −68.8% |
| ₹10 lakh became | ₹41.2 lakh | ₹131.1 lakh |
| Win rate | 60.0% | — |
| Trades (closed) | 15 | — |
| Winning / losing trades | 9 / 6 | — |
| Profit factor | 3.32 | — |
| Sharpe ratio | 0.47 | — |
| Volatility (annual) | 18.5% | — |
| Time in the market | 69% | 100% |
| Average holding | 236 sessions | — |
| Charges and slippage paid | ₹2,02,822 | — |
# Golden Cross (50/200 SMA) 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(sma(50), sma(200)))
buy(crosses_above(sma(50), sma(200)), size=percent_of_equity(100))
| Year | Strategy | Buy and hold |
|---|---|---|
| 2026* | −7.7% | +0.3% |
| 2025 | +5.3% | +17.1% |
| 2024 | +5.3% | +5.3% |
| 2023 | +12.3% | +12.3% |
| 2022 | +12.7% | +21.1% |
| 2021 | +13.4% | +13.5% |
| 2020 | −17.0% | −2.8% |
| 2019 | +2.0% | +18.4% |
| 2018 | −2.0% | +6.3% |
| 2017 | +40.4% | +40.5% |
| 2016 | +2.4% | +7.4% |
| 2015 | −3.3% | −9.7% |
| 2014 | +39.1% | +64.6% |
| 2013 | −12.8% | −8.7% |
| 2012 | +14.9% | +56.5% |
| 2011 | −8.8% | −32.4% |
| 2010 | +30.5% | +30.6% |
| 2009 | +19.0% | +80.5% |
| 2008 | −30.8% | −49.3% |
| 2007 | +49.7% | +64.2% |
| 2006 | +18.9% | +31.9% |
| Bought | At | Sold | At | Return |
|---|---|---|---|---|
| 20 Aug 2026 | 57,593.91 | 23 Sept 2026 | 56,125.33 | −2.8% |
| 8 May 2025 | 54,883.95 | 16 Apr 2026 | 56,572.26 | +2.9% |
| 1 Sept 2022 | 38,864.91 | 4 Feb 2025 | 49,464.49 | +27.0% |
| 5 Nov 2020 | 26,214.06 | 1 Apr 2022 | 36,243.9 | +38.0% |
| 21 Nov 2019 | 31,460.37 | 18 Mar 2020 | 22,378.23 | −29.1% |
| 3 Jan 2019 | 27,222.37 | 18 Sept 2019 | 27,263.74 | −0.1% |
| 24 May 2018 | 25,761.48 | 9 Nov 2018 | 25,703.94 | −0.5% |
| 6 Jun 2016 | 17,737.01 | 19 Apr 2018 | 25,168.64 | +41.6% |
| 16 Jul 2015 | 18,898.81 | 29 Jul 2015 | 18,304.05 | −3.4% |
| 18 Mar 2014 | 12,111.34 | 15 Jul 2015 | 18,773.3 | +54.7% |
From 30 Dec 2005 to 9 Nov 2026, these Golden Cross rules on the Bank Nifty index returned a CAGR of 7.0% after costs, less than the 13.1% a year from buying and holding the index, with a worst fall of 45.1% against 68.8% for buy-and-hold. It made 15 trades and was invested 69% of the time. This is a hypothetical test on past data, not a recommendation, and past performance is not indicative of future results.
60.0%: 9 of 15 closed trades made money after charges and slippage. On a ₹10 lakh account the average winning trade made ₹4,95,488 and the average losing trade lost ₹2,23,613; the profit factor (gross profit ÷ gross loss) was 3.32. 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 Bank Nifty index over the same dates returned 13.1% a year with a worst fall of 68.8%; the strategy returned 7.0% a year with a worst fall of 45.1%. 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.