20 EMA and MACD Centerline Crossover Trading Strategy
How to Trade Using the 20 EMA and MACD Centerline Crossover Strategy
The 20-period Exponential Moving Average and the Moving Average Convergence Divergence indicator can be combined to create a simple trend-following framework. The 20 EMA helps identify the short-term direction of price, while the MACD centerline provides information about momentum.
This strategy does not predict market movements or guarantee profitable trades. Its purpose is to help traders apply consistent entry, exit and risk-management rules. The approach should be tested before being used with real money.
Understanding the 20 EMA
An Exponential Moving Average gives greater weight to recent prices than a Simple Moving Average. The 20 EMA calculates the average price over approximately 20 periods while responding relatively quickly to new market information.
On a daily chart, it represents roughly 20 trading sessions. On a 15-minute chart, it uses the most recent twenty 15-minute candles.
When price remains above a rising 20 EMA, the short-term trend may be considered positive. When price stays below a falling 20 EMA, the trend may be considered negative.
A flat EMA combined with repeated price movement above and below it often indicates a range-bound market. Trend-following strategies can generate frequent false signals in such conditions.
Understanding the MACD Centerline
The standard MACD indicator commonly uses three settings: 12, 26 and 9.
The MACD line is calculated by subtracting the 26-period EMA from the 12-period EMA. A nine-period EMA of the MACD line forms the signal line. The histogram represents the difference between the MACD and signal lines.
The centerline is the zero level.
When the MACD line crosses above zero, the shorter EMA has moved above the longer EMA, suggesting improving positive momentum. When the MACD line crosses below zero, the shorter EMA has moved below the longer EMA, suggesting weakening or negative momentum.
A centerline crossover is different from a crossover between the MACD line and its signal line. The page should not confuse these two events.
Potential Long-Trade Setup
A possible bullish setup requires alignment between trend and momentum:
- Price closes above the 20 EMA.
- The 20 EMA is rising rather than flat.
- The MACD line crosses from below zero to above the centerline.
- The signal is confirmed only after the candle closes.
- The next candle does not open excessively far above the EMA.
A trader may consider an entry above the signal candle’s high or after a controlled pullback toward the 20 EMA. Entering immediately after a sharp price increase can result in a poor risk-to-reward relationship.
The MACD crossover alone should not be treated as sufficient. Price structure, liquidity and nearby resistance should also be examined.
Potential Short-Trade Setup
A bearish setup applies the rules in reverse:
- Price closes below the 20 EMA.
- The 20 EMA is falling.
- The MACD line crosses below the zero centerline.
- The crossover is confirmed at the candle close.
- Price is not already unusually extended below the EMA.
A possible entry may be considered below the signal candle or following a weak pullback toward the EMA.
Short selling and derivatives can create substantial risk. These instruments may not be appropriate for inexperienced market participants.
Stop-Loss Placement
No technical signal is always correct. A stop-loss should be determined before entering a trade.
For a long position, a logical stop may be placed below the latest confirmed swing low or below a nearby support level. For a short position, it may be placed above the latest swing high or resistance area.
An Average True Range-based stop can adapt to the instrument’s volatility. For example, a trader might use a multiple of ATR instead of an arbitrary number of points.
A wider stop should result in a smaller position. Risk should not be increased merely to avoid being stopped out.
Profit-Exit Methods
There is no single exit method suitable for every market. Possible approaches include:
- Taking profit at a predefined risk-to-reward level
- Trailing the stop below the 20 EMA
- Exiting when price closes on the opposite side of the EMA
- Exiting when MACD crosses back through the centerline
- Reducing part of the position near major support or resistance
Waiting for a complete opposite signal may preserve a strong trend, but it can also surrender part of an open profit. A fixed target provides certainty but may exit too early during a major move.
Traders should select one method during testing rather than changing rules after entering a trade.
Situations to Avoid
This approach may perform poorly when the market is moving sideways. A flat 20 EMA, overlapping candles and repeated MACD centerline crossovers are warning signs of weak trend conditions.
Trades may also be avoided immediately before major events such as central-bank decisions, corporate results or important economic data. Such events can cause price gaps and slippage beyond the planned stop.
Low-volume securities, wide bid-ask spreads and illiquid options can also make theoretical backtest results unrealistic.
Position Sizing
Position size should be based on the amount that can be lost if the stop is reached.
Position size = Maximum permitted loss ÷ Risk per unit
Suppose a trader permits a maximum loss of ₹1,000 and the difference between entry and stop is ₹10 per share. The theoretical position size would be 100 shares, before considering brokerage, taxes, slippage and liquidity.
This calculation limits risk but does not guarantee that the final loss will remain at the planned amount. A market gap can cause execution beyond the stop price.
Back-test Before Trading
Test the strategy on the intended instrument and timeframe using clearly defined rules. Include brokerage, Securities Transaction Tax, exchange charges, GST, stamp duty and realistic slippage.
Record the number of trades, win rate, average profit, average loss, maximum drawdown and performance across trending and range-bound markets. Avoid adjusting rules repeatedly only to improve historical results, as this can create overfitting.
After back testing, paper trading can help evaluate whether the rules are practical in live market conditions.
The 20 EMA and MACD centerline crossover strategy combine short-term trend direction with momentum confirmation. It is most useful as a structured decision framework rather than a standalone prediction tool.
Risk management, position sizing, market selection and disciplined execution are more important than any individual indicator.
Disclaimer: This article is for general education only and is not investment or trading advice. Trading and derivatives involve substantial risk, including loss of capital. Historical or back tested performance does not guarantee future results.
Comments (0)
Be the first to comment.
About the author

NISM-Series-X-A Investment Adviser Level 1 examination completed
Amit writes about Indian equity markets, technical analysis, macro themes and the day-to-day mechanics of trading, with a focus on making the flow of global markets legible for retail investors. He has completed the NISM-Series-X-A Investment Adviser Level 1 examination.
