Moving Averages: SMA vs EMA and How to Trade Them

Moving averages can be used to smooth out price volatility. They allow you to identify trends, support/resistance levels and entry/exit points.
Simple Moving Average (SMA) and Exponential Moving Average (EMA) are the most commonly used moving averages by traders. In this blog, we will take a look at how they are calculated and how you can use them in your trade setup.
Let’s begin.
SMA and EMA formulas
Simple Moving Average
The Simple Moving Average (SMA) takes the average of the closing prices for a set number of periods.
SMA = Total of Closing Prices / Number of Periods
Below is a table showing the closing prices for five sessions.
| Day | Closing Price (in Rupees) |
|---|---|
| 1 | ₹100 |
| 2 | ₹105 |
| 3 | ₹110 |
| 4 | ₹108 |
| 5 | ₹112 |
SMA = (100 + 105 + 110 + 108 + 112) / 5
SMA = ₹107
The 5-period moving average is ₹107.
Once another session has occurred, the oldest price is dropped and the newest price is added. Therefore, this average is constantly being updated.
SMAs are often used to look at general trends, as all prices within this period are given equal weighting.
Exponential Moving Average
Exponential moving averages give more importance to more recent prices. As a result, EMAs will tend to react more quickly to price movements compared to SMAs.
EMA can be calculated using the formula below.
EMA = (Current Closing Price × Multiplier) + (Last EMA × (1 − Multiplier))
Where:
Multiplier = 2 / (Number of Periods + 1)
Assuming the EMA is calculated across 10 periods:
Multiplier = 2 / (10 + 1) = 0.1818
Assuming the last EMA value was ₹200, and the latest closing value is ₹210:
EMA = (210 × 0.1818) + (200 × 0.8182)
EMA ≈ ₹201.82
The new EMA accounts for the latest closing price but still includes information from previous periods.
To begin calculating the EMA, it is often initialised using the SMA. From the next calculation onwards, the previous EMA value is used.
Popular periods (20, 50, 200)
20-Period Moving Average
This can be used to understand short-term trends.
On a daily chart, this would take the average of closing prices over approximately one trading month.
Let’s say a stock is trading at ₹525, but its 20-period EMA is ₹510. This means the stock is above its average price of the last 20 days. And for some traders, this might be a positive sign.
But remember, a stock trading above its EMA does not guarantee it will move up in future. There are some factors at play too.
50-Period Moving Average
This can be used to understand medium-term trends.
If a stock is consistently trading above its rising 50-period SMA, traders may deem there to be a positive overall trend.
If the price is regularly dropping to meet the average line and then recovering, this could be seen as a dynamic support line.
Support levels may not hold, particularly during large market corrections.
200-Period Moving Average
This is very commonly used to understand long-term trends.
If a stock is consistently above its rising 200-period moving average, it may be considered to have a positive long-term trend.
If a stock is consistently below a declining 200-period moving average, it may indicate weakness.
| Period | Typical Use |
|---|---|
| 20 | Short-term trend |
| 50 | Medium-term trend |
| 200 | Long-term trend |
Golden cross and death cross
Golden crosses and death crosses occur when two moving averages cross.
The most commonly referred to golden cross and death cross signals use 50- and 200-period moving averages.
Golden Cross
A golden cross occurs when the 50-period moving average crosses above the 200-period moving average.
Assume a stock has the following values:
- 50-Period SMA = ₹495
- 200-Period SMA = ₹500
After a few sessions, the 50-period moving average increases to ₹505 while the 200-period moving average remains around ₹500.
The shorter-period moving average has crossed above the longer-period moving average.
This is generally a bullish signal, as the shorter-term average has increased relative to the longer-term average.
Death Cross
A death cross occurs when the 50-period moving average crosses below the 200-period moving average.
Traders generally see this movement as a bearish one. Let’s assume a stock with the 50-period SMA falls to ₹495 from ₹510. And at the same time, its 200-period SMA is still ₹500.
This means its 50-period SMA crossed its 200-period SMA in the downward direction. And this might indicate that in the medium term, the price might go down.
But there is a little caveat here. These signals rely on past prices. So before the signal is generated, there might have been a big price movement. And that’s the reason why these indicators are also known as “lagging indicators”.
So, make sure you look at market conditions before using these signals.
Moving average crossovers
Traders can also look at crossovers using moving averages with shorter periods to find possible trading opportunities.
Fast and Slow Moving Averages
A trader may be using a 9-period EMA along with a 21-period EMA.
Bullish Crossover
If the 9-period EMA crosses above the 21-period EMA, this may indicate increasing short-term momentum.
Assume the price of a stock is around ₹350. The 9-period EMA is ₹346, and the 21-period EMA is ₹344.
This means the 9-period EMA just crossed above the 21-period EMA. Some traders treat it as a bullish sign for the short term.
They look for support and resistance levels, volume and price patterns to confirm this crossover before taking any position.
Bearish Crossover
If the 9-period EMA crosses below the 21-period EMA, this may indicate decreasing momentum.
If holding a long position, traders may consider that the upward trend may be losing momentum.
However, in range-bound conditions, crossovers may occur frequently.
Using Moving Averages to Enter/Exit Positions
Some traders use moving average crossovers in combination with support and resistance levels.
For example:
- Use the 50-period MA to determine the overall trend.
- Look at short-term moving averages to find possible entries.
- Confirm using price action.
- Place a stop-loss depending on the setup.
- Decide on the target and position size before entering.
Pitfalls
There are many issues to consider when using moving averages.
Delayed Signals
This is the biggest issue. These signals rely on past data. Result? They are generated after the big price movement has already happened. So when the crossover appears on the chart, there is a chance that you missed the opportunity already.
False Crossovers
If a stock is moving in a range, it may move above and below the moving average frequently. This could cause frequent signals to buy/sell; however, there may not be a continued trend. This type of movement is commonly referred to as a ‘whipsaw’.
Different Market Conditions
A setup may work well in a trending market but may be less effective in range-bound conditions. For example, a shorter EMA may be effective at following rapid price movements; however, during volatile sessions, it may cause frequent false signals.
Too Reliant on Indicators
Using multiple moving averages may not improve accuracy. Volume, support and resistance, key news and overall market direction should also be considered.
Risk Management
Always consider potential risk in trades. Just because a support level is identified using a moving average, we cannot guarantee that the price will respect it. Stop-loss orders may be executed at different prices during volatile conditions.
FAQs
Which is better, SMA or EMA?
It depends on your strategy. SMAs give equal weighting to prices and show a smoother trend. EMAs will respond more quickly to recent price movements; however, they may create more false signals.
What is the 200 DMA?
The 200 DMA is the 200-day moving average. It can be used to understand long-term trends in price. It takes the average of 200 daily closing prices.
What is golden cross?
A golden cross occurs when a short-term moving average (often 50-period) crosses above a long-term moving average (often 200-period). It is generally seen as a bullish signal.
Best moving average for intraday?
Many intraday traders use 9-, 20- or 21-period EMAs. However, the best value to use depends on the timeframe of the chart, strategy and market conditions. No value can guarantee a profit.
Conclusion
Moving averages give traders an understanding of price trends. Simple moving averages and exponential moving averages are calculated differently. Common values include 20, 50 and 200 periods, so trends can be analysed over specific periods of time.
Golden crosses, death crosses and short-term crossovers can create trading signals; however, delayed signals, false signals and sudden price movements must be considered.
Put your technical analysis knowledge into practice.
Download Lemonn, your stock trading and investing app, to investigate stocks in India. Using the charting features provided, you can analyse price movements. Understand trends, use moving averages and find potential trading opportunities. Be mindful of risk management.
Start analysing the market effectively. Download Lemonn now.
Disclaimer
The stocks mentioned in this article are not recommendations. Please conduct your own research and due diligence before investing. Investment in securities market are subject to market risks, read all the related documents carefully before investing. Please read the Risk Disclosure documents carefully before investing in Equity Shares, Derivatives, Mutual fund, and/or other instruments traded on the Stock Exchanges. As investments are subject to market risks and price fluctuation risk, there is no assurance or guarantee that the investment objectives shall be achieved. Lemonn (Formerly known as NU Investors Technologies Pvt. Ltd) do not guarantee any assured returns on any investments. Past performance of securities/instruments is not indicative of their future performance.







