The 200 DMA switch
Own the index above its 200-day average. Sit in a liquid fund when it closes 2% below.
₹1 lakh in NIFTY50, Nov 2011 → Nov 2026
19 Nov 2011 → 19 Nov 2026The idea
The 200-day moving average (200 DMA) is the line every Indian market show talks about. This rule uses it as an on/off switch: invested above it, in cash below it. The 2% buffer avoids flipping every time the price touches the line.
The rules
- Buy
- Close is above the 200-day simple moving average
- Sell
- Close is 2% or more below the 200-day average
- Size
- All capital; idle cash earns 6%
₹1 lakh in NIFTY 50. Buy when it closes above its 200-day average, sell when it closes 2% below it. Idle cash earns 6%, 0.2% cost per trade. Compare with buy and hold, last 15 years.
Test it in the LabVerdict across 10 stocks and indices
One stock can flatter any rule. The same rules on more names show whether it is an edge or luck.
200 DMA switch: on average 5.85 points a year worse than buy & hold on XIRR, with a worst fall 13.1 points smaller.
| Stock / index | Buy & hold | 200 DMA switch | Trades | Won | Time in market | ||
|---|---|---|---|---|---|---|---|
| XIRR | Worst fall | XIRR | Worst fall | ||||
| NIFTY50 | 11.8% | −38.4% | 7.9% | −19.3% | 20 | 40% | 79% |
| BANKNIFTY | 14.2% | −47.9% | 7.6% | −30.4% | 30 | 37% | 76% |
| RELIANCE | 15.3% | −45.1% | 5.3% | −47.7% | 34 | 38% | 74% |
| HDFCBANK | 15.3% | −41.1% | 8.7% | −39.5% | 30 | 27% | 79% |
| ICICIBANK | 19.3% | −51.5% | 10.5% | −31.9% | 33 | 24% | 75% |
| TCS | 12.9% | −53.4% | 9.7% | −30.6% | 29 | 24% | 75% |
| INFY | 11.1% | −48.2% | 3.4% | −41.8% | 35 | 23% | 62% |
| SBIN | 15.2% | −59.5% | 7.6% | −50.5% | 32 | 34% | 68% |
| ITC | 9.2% | −55.3% | 9.8% | −35.0% | 28 | 29% | 65% |
| LT | 16.2% | −54.4% | 11.5% | −36.7% | 25 | 28% | 72% |
Each row is a separate backtest, 19 Nov 2011 → 19 Nov 2026. Green marks the best value in the row. Worst fall is the maximum drawdown: the largest drop from a peak in portfolio value.
Real trades, real dates
From the NIFTY50 backtest above: the median winner and loser. Exits are checked on closing prices, so a gap can push a loss past the stop-loss.
A typical winning trade
₹1,28,661 in → ₹1,60,857 out · +25.0% after costs
A typical losing trade
₹1,32,232 in → ₹1,28,374 out · −2.9% after costs
Last 8 trades
| Bought | Price | Sold | Price | Days | Result |
|---|---|---|---|---|---|
| 22 Apr 2025 | ₹24,167.25 | 5 Mar 2026 | ₹24,765.9 | 317 | +2.1% |
| 6 Apr 2023 | ₹17,599.15 | 13 Jan 2025 | ₹23,085.95 | 648 | +30.7% |
| 1 Aug 2022 | ₹17,340.05 | 15 Mar 2023 | ₹16,972.15 | 226 | −2.5% |
| 21 Mar 2022 | ₹17,117.6 | 5 May 2022 | ₹16,682.65 | 45 | −2.9% |
| 20 Jul 2020 | ₹11,022.2 | 25 Feb 2022 | ₹16,658.4 | 585 | +50.5% |
| 23 Sep 2019 | ₹11,600.2 | 2 Mar 2020 | ₹11,132.75 | 161 | −4.4% |
| 26 Feb 2019 | ₹10,835.3 | 6 Aug 2019 | ₹10,948.25 | 161 | +0.6% |
| 14 Dec 2018 | ₹10,805.45 | 19 Feb 2019 | ₹10,604.35 | 67 | −2.3% |
Tends to work
- Long bear markets: keeps losses smaller
- Investors who cannot sit through a 35% fall
Tends to fail
- Choppy years around the average: many small losing trades
- Strong recoveries: it buys back higher than it sold
Make it yours
Click one to open it in the Lab, or write your own twist in plain English.
Assumptions and the exact spec the engine ran
- ₹1,00,000 invested once; each trade uses all available cash
- 0.2% cost on every buy and every sell (STT, brokerage, exchange charges, stamp duty)
- Cash waiting between trades earns 6% a year, like a liquid fund
- Prices are daily closes; indices are price indices (no dividends), stock prices include dividends
- Taxes are not deducted
- Signals are filled at the next day's close.
- The stock list is today's, so stocks that were delisted or shrank are missing (survivorship bias).
{
"title": "200 DMA switch: NIFTY50",
"years": 15,
"cost_pct": 0.2,
"assumptions": [
"₹1,00,000 invested once; each trade uses all available cash",
"0.2% cost on every buy and every sell (STT, brokerage, exchange charges, stamp duty)",
"Cash waiting between trades earns 6% a year, like a liquid fund",
"Prices are daily closes; indices are price indices (no dividends), stock prices include dividends",
"Taxes are not deducted"
],
"strategies": [
{
"name": "Buy & hold",
"symbol": "NIFTY50",
"contribution": {
"amount": 100000,
"every": "once"
},
"buy": {
"when": "on_contribution"
}
},
{
"name": "200 DMA switch",
"symbol": "NIFTY50",
"contribution": {
"amount": 100000,
"every": "once"
},
"cash_interest_pct": 6,
"buy": {
"when": "signal",
"check": "daily",
"condition": {
"type": "vs_sma",
"days": 200,
"op": ">",
"value": 0
},
"amount": "all_cash"
},
"sell": {
"check": "daily",
"condition": {
"type": "vs_sma",
"days": 200,
"op": "<",
"value": -0.02
},
"fraction": 1
}
}
]
}
Keep researching
All strategies20/50 EMA crossover
Be invested while the 20-day EMA is above the 50-day EMA. Step out when it crosses below.
Golden cross (50/200 SMA)
Hold while the 50-day average is above the 200-day. The slow, famous one.
RSI oversold bounce
Buy when RSI(14) drops below 30. Book 8% profit or cut the loss at 5%.