9/20 EMA Crossover Strategy: Indian Market Rules & Backtest
The 9-period and 20-period Exponential Moving Average (EMA) crossover is often the first technical system taught to beginner traders. When the fast 9 EMA crosses above the slower 20 EMA, buy; when it crosses below, sell. In actual live trading on the National Stock Exchange (NSE), executing this naive system unconditionally is a guaranteed path to capital destruction.
Moving averages do not predict future prices; they smooth historical closing prices with exponential weighting towards recent bars. To make the 9/20 EMA framework profitable in Indian equities and derivatives, professional traders use the crossover not as an entry trigger, but as a regime filter — entering on structural pullbacks to the dynamic value zone created between the two averages.
1. The Mathematics of Exponential Smoothing — What It Measures
Unlike a Simple Moving Average (SMA) which gives equal weight to all days in the lookback window, an EMA applies a mathematically declining multiplier:
For 9 EMA: k = 2 / (9 + 1) = 0.200 (20.0% weight to current candle close)
For 20 EMA: k = 2 / (20 + 1) = 0.095 (9.5% weight to current candle close)
EMA(Today) = [Price(Today) × k] + [EMA(Yesterday) × (1 − k)]
What the Crossover Does Not Tell You: A crossover tells you that the short-term mean has exceeded the medium-term mean. It does not tell you whether that shift represents genuine institutional accumulation or a temporary volatility spike. In range-bound markets, by the time the 9 EMA crosses above the 20 EMA on a 15-minute chart, the price is already at the top of the trading range, leaving you buying directly into resistance.
2. How EMAs Behave in the Indian Market Session
- 09:15 – 09:45 (Opening Gap Distortions): A 1% opening gap on Nifty or heavyweights causes the 9 EMA to instantly jerk higher, triggering a false crossover while the 20 EMA slowly catches up. Never take fresh crossover entries in the first 30 minutes.
- 09:45 – 11:30 (The Dynamic Value Zone): Once the crossover is established and EMAs begin fanning out, price often pulls back to test the gap between the 9 and 20 EMA. This 20 EMA test provides the prime low-risk entry of the day.
- 11:30 – 13:30 (The Midday Chop): As volume contracts across Indian desks, price flattens and repeatedly weaves across both EMAs. Rule: All 9/20 crossover signals generated during this window must be ignored.
- 13:30 – 15:15 (Trend Continuation & Exit): Strong trends established in the morning will ride the 20 EMA into the afternoon session. A 15-minute close below the 20 EMA serves as an objective trailing stop.
3. Three High-Probability 9/20 EMA Setups
Setup 1: The 20 EMA Dynamic Value Pullback
Context: 9 EMA has crossed above 20 EMA on the 15-minute chart; both EMAs are sloping upward with angle > 30°; price is trading above session VWAP and the 200 EMA.
Trigger: Price pulls back into the "value pocket" between the 9 and 20 EMA on declining volume. A 15-minute bullish reversal candle (hammer or green close rejecting the 20 EMA) triggers the entry.
Worked Example (Bharti Airtel):
- 9/20 crossover occurs at 09:45 IST around ₹1,420.00. Price rallies to ₹1,432.00.
- At 10:30 IST, price pulls back to ₹1,425.00, touching the rising 20 EMA (₹1,424.50). Session VWAP is at ₹1,423.00.
- 15-minute candle rejects ₹1,424.50 and closes at ₹1,426.50 on rising volume.
- Entry: Buy at ₹1,427.00.
- Stop Loss: ₹1,422.50 (Below 20 EMA, VWAP, and swing low) → Risk = ₹4.50 per share.
- Target 1 (1:1.5 R:R): ₹1,433.75 (Day high re-test).
- Target 2 (1:2.5 R:R): ₹1,438.25.
Why it works: Entering at the 20 EMA allows you to buy at average institutional price rather than chasing breakout peaks, ensuring superior risk-to-reward ratios.
Setup 2: The EMA Fan Momentum Expansion
Context: 9 EMA > 20 EMA > 50 EMA > 200 EMA. All four averages are fanning out in perfect sequence with expanding distance between them, confirming strong institutional trend regime.
Trigger: A shallow 5-minute consolidation breaks out in the direction of the fan with volume > 1.5x average.
Setup 3: The 20 EMA Trailing Exit for Runners
Context: In a profitable trend trade, exit when a 15-minute candle closes decisively below the 20 EMA. This prevents getting shaken out by minor intraday noise while securing the bulk of the move.
4. Rupee Risk Management & Position Sizing
Standard Account Model: ₹2,00,000 Capital
- Max Risk per Trade (1.0%): ₹2,000
- Stock: Bharti Airtel @ ₹1,427.00 entry, ₹1,422.50 stop loss
- Risk per Share: ₹4.50
- Position Size Calculation: ₹2,000 ÷ ₹4.50 = 444 Shares
- Total Capital Exposure: 444 × ₹1,427 = ₹6,33,588 (~3.16x intraday leverage)
5. Statutory Friction Breakdown on NSE
| Charge Item | Rate | Turnover (₹6,30,000) |
|---|---|---|
| Brokerage | ₹20 per order | ₹40.00 |
| STT | 0.025% on Sell Turnover | ₹78.75 |
| Exchange Charges | 0.00307% (NSE) | ₹38.68 |
| SEBI Turnover Fee + Stamp Duty | Statutory Levies | ₹10.71 |
| GST (18%) | 18% on (Brokerage + Exchange + SEBI) | ₹14.28 |
| Total Friction | All Statutory Levies | ₹182.42 |
6. Common Mistakes to Avoid
- Trading Raw Crossovers in Sideways Ranges: When the 200 EMA is flat and ADX is under 20, taking EMA crossover signals generates guaranteed losses.
- Chasing Extended Candles: Entering when price has already moved 2% away from the 20 EMA forces a wide stop loss and destroys risk-to-reward.
- Ignoring Higher Timeframe Resistance: Buying a 15-minute EMA crossover right beneath a major daily resistance level leads to immediate bull traps.
7. Backtest Results
Where we have run this ourselves, the figures below are the engine output for the 9/20 EMA crossover strategy across historical 15-minute candles on NSE equities.
We have not published figures for this strategy
Our engine does not implement this exact strategy yet, and we will not print a win rate we produced from a different one. Build it in the Backtest Lab on the same NSE history, with the same brokerage, STT and GST applied, and the numbers you get will be your own.
Frequently Asked Questions
Why do simple 9/20 EMA crossovers lose money over time?
Because moving averages are lagging indicators. In sideways or range-bound markets (which occur ~70% of the time on NSE), the crossover signals trigger near the top of the range and the reverse crossover triggers near the bottom. The resulting whipsaw losses, combined with brokerage, STT, and exchange turnover fees, rapidly deplete trading capital.
How can you make the 9/20 EMA strategy profitable in Indian markets?
Never trade the raw crossover intersection. Instead: (1) Use the 9/20 EMA crossover solely to define trend direction, (2) Wait for the first pullback to the 20 EMA after the crossover occurs, (3) Confirm that price is on the correct side of session VWAP, and (4) Filter against higher timeframe 200 EMA.
What is the best timeframe for 9/20 EMA trading on NSE?
The 15-minute timeframe is the quantitative sweet spot for NSE equities and Nifty/Bank Nifty futures. 1-minute and 5-minute charts generate far too many false crossover signals, while 1-hour charts produce signals with stops too wide for intraday MIS leverage.
What is the EMA Fan configuration?
An EMA Fan occurs when multiple EMAs (such as 9, 20, 50, and 200) separate in parallel alignment with expanding distance between them. In an uptrend, 9 > 20 > 50 > 200 with all lines sloping upward. This confirms powerful institutional trend momentum.
How does statutory friction impact moving average crossover strategies?
Because mechanical crossover systems trade frequently without regime filters, statutory turnover friction (brokerage, STT, exchange charges, GST) can exceed the gross profit generated by winning trends. Rigorous backtesting with real statutory charges is essential.