Buffered 9/21 EMA cross
The 9/21 EMA crossover is one of the simplest trend signals, but on intraday charts it flickers back and forth whenever the market goes sideways. This version only counts a cross once the gap between the two EMAs is wider than a quarter of the ATR, and only in the direction of the 200-bar SMA. It trades NIFTY futures on 15-minute bars between 09:45 and 13:30 and is flat by 14:30.How it trades
Results
PRE-BUILT · DEFAULTSWhere it made and lost money
In this test the buffered crossover earned its money on trend days: ₹90,086 over 23 trades with a 74% win rate, more than twice the year's total. When the session keeps moving after the cross, the position simply rides to 14:30. Quiet sessions lost ₹39,026 over 30 trades, because a cross in a narrow range drifts back and the trade either hits the 1.5 ATR stop or closes flat at 14:30. Expiry days made ₹28,002 over 13 trades, and nervous days after India VIX closed above 14.5 made ₹23,023, while calm days below 11.5 barely broke even.
About this strategy
- Build 15-minute bars of the near-month NIFTY future, joined across sessions and adjusted for the jump at each monthly roll. Compute EMA 9, EMA 21, ATR(14) and the 200-bar SMA.
- Long signal: a bar closing between 09:45 and 13:30 where EMA 9 minus EMA 21 rises above 0.25 times ATR (it was not above that buffer on the previous bar) and the close is above the SMA. Buy one lot at the next tick.
- Short signal: the mirror, with the gap falling below minus 0.25 ATR and the close below the SMA.
- Stop at 1.5 times the signal bar's ATR from the entry price.
- Exit when EMA 9 closes back through EMA 21, or at 14:30, whichever comes first.
- One trade at a time; a new trade needs a fresh buffered cross.
Why traders use it
Requiring the EMAs to separate by a fraction of the ATR filters out the tiny crosses that happen in quiet, directionless trade, while still adapting to the day's volatility. The 200-bar SMA keeps trades on the side of the larger trend, and the restricted entry window avoids both the opening noise and the late-afternoon lull. The ATR-based stop scales with conditions. It is a straightforward refinement of a crossover that many traders already use.
The year in plain words
On NIFTY futures from 1 Oct 2025 to 30 Sep 2026 with default settings, the strategy took 65 trades, won 52% and made ₹41,875 before costs (profit factor 1.37). After ₹20 per order and bid-ask slippage it still made ₹32,390. In this run every trade ended either at the 14:30 square-off (44) or at the 1.5 ATR stop (21). Nine of twelve months were positive, with March the best at ₹18,174; August lost ₹15,203. Wins averaged about ₹4,588 against losses of ₹3,681, and the maximum drawdown was ₹24,550 before costs. The modest trade count kept costs manageable.
What the settings do
Risks
- A 1.5 ATR stop on a full NIFTY futures lot can cost several thousand rupees per trade.
- Profit depended on trend days; quiet days lost steadily and a run of them, as in August, produces a losing month.
- The crossover is late by design, so part of each move is missed before entry.
- Futures positions need margin and move point for point with the index.
Who it suits
Intraday futures traders who want a simple, filtered trend signal with few trades and a firm afternoon exit. It requires futures margin and acceptance of losing streaks on quiet days.
Questions traders ask
What is the 9 21 EMA crossover strategy?
It buys when the 9-period EMA crosses above the 21-period EMA and sells when it crosses below, treating the cross as a change in short-term trend. This version adds two filters: an ATR-based minimum gap between the EMAs and the direction of the 200-bar moving average.
Is the EMA 9/21 crossover profitable on NIFTY?
In this backtest on 15-minute NIFTY futures from 1 Oct 2025 to 30 Sep 2026 it made ₹41,875 before costs and ₹32,390 after ₹20 per order and bid-ask slippage, with statutory charges excluded. Most of the profit came from trend days. Past results do not guarantee future ones.
What does the ATR buffer do?
It requires the gap between EMA 9 and EMA 21 to be larger than a quarter of the current ATR before a cross counts. On quiet bars the EMAs often cross by tiny amounts and cross back; the buffer ignores those and waits for a meaningful separation.
Why is entry limited to 09:45 to 13:30?
The first half hour is noisy, and signals late in the session have little time to develop before the 14:30 exit. Restricting the window keeps trades to the part of the day where a 15-minute crossover has room to work.