// 01 What is the EMA Crossover Strategy?
EMA stands for Exponential Moving Average — a price average that gives more weight to recent prices than older ones, making it react faster to new price movements than a simple moving average (SMA).
The EMA crossover strategy uses two EMAs — one fast (short period) and one slow (long period). When the fast EMA crosses above the slow EMA, it signals upward momentum — a buy signal (called a golden cross). When the fast EMA crosses below the slow EMA, it signals downward momentum — an exit or short signal (called a death cross).
// 02 Best EMA Settings for NSE
The optimal EMA settings depend on your timeframe and trading style:
- 5-minute chart: 9 EMA and 21 EMA — fast signals, suitable for intraday scalping on liquid stocks like RELIANCE, HDFCBANK, INFY.
- 15-minute chart: 20 EMA and 50 EMA — fewer signals, higher quality, suitable for intraday swing trades.
- 1-hour chart: 50 EMA and 200 EMA — captures multi-day trends, suitable for positional trades.
For pure intraday algo trading on NSE with a 5-minute timeframe, the 9/21 EMA combination is the most tested and commonly used starting point.
// 03 Entry and Exit Rules
Entry (BUY): Previous bar — fast EMA ≤ slow EMA. Current bar — fast EMA > slow EMA. Enter at the close of the crossover bar.
Exit (SIGNAL): Fast EMA crosses back below slow EMA.
Stop Loss: Fixed rupee stop (e.g. ₹200 per trade for 100 qty) or ATR-based stop (e.g. 1.5× ATR below entry).
Target: Fixed rupee target (e.g. ₹400, giving 1:2 risk-reward) or trail the stop as price moves in your favour.
// 04 Backtesting EMA Crossover on NSE
On MyAlgoKart, you can backtest the EMA crossover in seconds. Select the EMA strategy, set fast period to 9 and slow to 21, pick a liquid NSE stock (RELIANCE, TCS, HDFCBANK), set 5-minute timeframe, and run over 60–90 days of data.
Typical results on trending stocks: 45–60% win rate, profit factor of 1.3–1.8, with the strategy making money through a small number of large winning trades that outweigh the small frequent losses.
The strategy underperforms significantly during January–March when NSE often trades sideways. It performs best during strong trending months like October–December or major breakout periods.
// 05 Combining EMA With Other Indicators
EMA crossover alone generates many false signals. Combining it with other indicators dramatically improves results:
- EMA + RSI: Only take the EMA crossover buy signal if RSI is above 50 (confirms bullish momentum).
- EMA + VWAP: Only buy above VWAP — ensures you are trading with institutional order flow.
- EMA + Supertrend: Only take EMA crossovers when Supertrend is also in bullish direction.
MyAlgoKart's multi-strategy AND logic lets you combine any of these filters and backtest the combined result instantly.