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.
You May Also Like

Big Tech Gains $750B as AI Data Centre Stocks Crash
Global Markets & Economy · Nov 5, 2026 · 12 min read
Big Tech Gains $750 Billion After US Midterms, but AI Data-Centre Stocks Crash: Is Wall Street Rewarding Less AI Spending? Key Takeaway: Wall Street's reaction to the 2026 US midterm elections has exposed a surprising divide in the artificial intelligence investment boom. Established technology giants rallied, with five major companies on course to add more than $750 billion…
Read more...
US Midterm Elections 2026: Impact on Stocks, Dollar & India
Global Markets & Economy · Nov 4, 2026 · 10 min read
US Midterm Elections 2026: Why Treasury Yields, the Dollar and Indian Stocks Could React More Than Wall Street Key Takeaway: Democrats have won control of both chambers of the US Congress in the 2026 midterm elections, creating a divided government under President Donald Trump. The immediate market reaction has been revealing: US Treasury yields declined, the dollar weakened…
Read more...
Apple Overtakes Nvidia: Is Lower AI Spending Winning?
Technology & Sectors · Nov 2, 2026 · 9 min read
Apple Overtakes Nvidia as World's Most Valuable Company Ahead of Earnings: Is Spending Less on AI Becoming Wall Street's Winning Strategy? Key takeaway: Apple has reclaimed the title of the world's most valuable publicly traded company, overtaking Nvidia as investors reassess the enormous cost of artificial intelligence infrastructure. With Apple's upcoming earnings in focus…
Read more...
ExxonMobil Refining Profits Surge: Impact on Indian Oil Stocks
Commodities & Energy · Nov 1, 2026 · 8 min read
ExxonMobil's Refining Profits Overtake Oil Drilling for First Time in 6 Years: Why India's Oil Stocks May Miss the Windfall Key Takeaway: ExxonMobil's refining business has emerged as a bigger earnings contributor than oil production, highlighting an extraordinary shift in global energy markets. But Indian oil companies such as IOC, BPCL and HPCL face a different challenge…
Read more...
Fed Decision and Microsoft–Google Earnings: Two Critical Tests for the AI Stock Market Rally
Global Markets & Economy · Oct 28, 2026 · 15 min read
Global stock markets are approaching one of the most important financial evenings of October 2026. The U.S. Federal Reserve is preparing to announce its latest interest-rate decision, while Microsoft and Alphabet, Google's parent company, are scheduled to publish quarterly earnings after Wall Street closes. These developments arrive as investors reassess the sustainability of…
Read more...
JetBlue Stock Surges 20%, Bond Yield Tops 30%: Warning?
Global Markets & Economy · Oct 28, 2026 · 16 min read
JetBlue Stock Surges 20% While Its Bonds Yield Over 30%: Is Airline Debt Flashing a Warning for Investors? Something unusual is happening in the U.S. airline industry. Shares of JetBlue Airways surged approximately 20% on October 27, after the airline raised its revenue outlook and attempted to reassure investors about its financial position. But an entirely different story…
Read more...
US Consumer Staples Rally 9.6%: FMCG Valuation Risk for India
Global Markets & Economy · Oct 25, 2026 · 16 min read
US Consumer Staples Surge 9.6% as Valuations Overtake Tech: Is the Safe-Stock Trade Becoming a Trap for Indian FMCG Investors? Something unexpected is happening on Wall Street. As investors become increasingly cautious about expensive artificial intelligence stocks, money has been moving into an unlikely market leader: consumer staples. The U.S. consumer-staples sector has…
Read more...
SpaceX 80,000 Cell Sites: Will Starlink Challenge Jio & Airtel?
Global Markets & Economy · Oct 24, 2026 · 17 min read
SpaceX's 80,000 Cell-Site Plan Sends US Telecom Stocks Down 8%: Could Starlink Disrupt Jio and Airtel Next? A major shift may be emerging in the global telecommunications industry—and Wall Street has already started reacting. Shares of American telecommunications giants AT&T and T-Mobile plunged nearly 8% on October 23 after reports revealed that Elon Musk's SpaceX was…
Read more...
US 10-Year Treasury Yield Below 5%: Growth Shock Warning?
Central Banks & Rates · Oct 23, 2026 · 17 min read
US 10-Year Treasury Yield Falls Below 5% Despite $114 Oil: Is the Bond Market Warning of a Global Growth Shock? Something unusual is happening across global financial markets. The yield on the benchmark U.S. 10-year Treasury has fallen sharply below the psychologically important 5% level, even as Brent crude oil has surged toward $114 per barrel and technology stocks have…
Read more...
Brent Crude Tops $110: Impact on Indian Stocks & Earnings
Global Markets & Economy · Oct 22, 2026 · 14 min read
Brent Crude Tops $110: Why Indian Airlines, Paints and Tyre Stocks Face a Hidden Earnings Risk Brent crude oil has climbed above $110 per barrel, intensifying concerns that rising global energy prices could squeeze corporate profit margins, increase India's import costs and create further volatility in domestic equities. On October 22, Brent futures traded above $111 after…
Read more...