If you open almost any trading chart, you will see at least one moving average. They smooth out price noise and show trend direction at a glance. The two most common types are the Simple Moving Average (SMA) and the Exponential Moving Average (EMA). The choice between them matters less than most people think — but understanding the difference helps you use them well.
How the SMA works
The SMA is the plain average of the last N closing prices. A 20-day SMA adds the last 20 closes and divides by 20. Every day in the window has equal weight.
Effect: smooth and steady, but slow to react to new moves.
How the EMA works
The EMA gives more weight to recent prices using a smoothing factor of 2 ÷ (N + 1). For a 20-period EMA, the latest price gets roughly 9.5% weight, and older prices fade gradually.
Effect: reacts faster to new price moves, but also responds more to noise.
EMA vs SMA at a glance
| SMA | EMA | |
|---|---|---|
| Weighting | Equal | More weight on recent prices |
| Speed | Slower | Faster |
| False signals | Fewer | More |
| Popular for | Long-term trend (50, 100, 200 SMA) | Short-term trading (9, 20, 21 EMA) |
Popular moving average settings
- 9 and 21 EMA — short-term momentum and swing trading.
- 20 EMA — the "trend line" many traders watch on daily and hourly charts.
- 50 SMA/EMA — medium-term trend; often acts as support in healthy uptrends.
- 200 SMA/EMA — the long-term trend. Price above the 200-day average is widely treated as a bull market for that stock or index.
Because so many traders watch these levels, they can become self-fulfilling to some extent — price often reacts around them.
Three ways to use moving averages
1. Trend direction
Price above a rising moving average = uptrend bias. Price below a falling bias. A flat moving average with price crossing back and forth = range.
2. Dynamic support and resistance
In trends, pullbacks often stop near the 20 or 50 average. Combine this with a candle signal for entries. See support and resistance explained.
3. Crossovers
A faster average crossing above a slower one signals momentum turning up. Two famous examples:
- 9/21 EMA crossover for swing trades — test it in the EMA crossover backtest.
- 50/200 SMA golden cross for long-term trends — see golden cross and death cross explained.
The weakness of moving averages
All moving averages lag. In sideways markets, crossovers produce repeated small losses ("whipsaws"). No setting avoids this completely. Solutions include:
- adding a trend filter (only trade crossovers in the direction of the 200 average),
- requiring price to close beyond the average, not just touch it,
- avoiding crossovers when the averages are flat and tangled.
So, EMA or SMA?
- For short-term trading, most traders prefer the EMA's responsiveness.
- For long-term trend identification, the SMA's stability is often better.
- More important than the type: use the same settings consistently and test them on your market and timeframe.
You can swap between SMA and EMA in seconds in our strategy builder and compare the backtest results directly.
Moving averages and risk
A crossover is an entry idea, not a risk plan. Decide your stop-loss (below a swing low or the slower average), size the trade with the position size calculator, and expect losing streaks during ranges.
Key takeaways
- SMA treats all days equally; EMA emphasises recent prices and reacts faster.
- Use EMAs for short-term signals and SMAs for long-term trend context.
- 9/21, 20, 50 and 200 are the most-watched settings.
- Moving averages lag and whipsaw in ranges — add filters and test.
Frequently asked questions
Which moving average is best for intraday trading?
Short EMAs such as 9, 20 or 21 on 5- to 15-minute charts are popular, often combined with VWAP. Test on your instrument before relying on any setting.
Why is the 200-day moving average important?
It represents the long-term trend and is watched by many institutions and traders, so price often reacts around it.
Do moving averages work for crypto?
Yes. Crypto trends strongly, so moving-average systems can work well, though volatility means wider stops.
Can I learn moving average strategies in a course?
Our technical analysis course covers moving averages, crossovers and trend filters with live chart practice.
BullishBrush শুধুমাত্র শেয়ার বাজারের শিক্ষা দেয়। আমরা SEBI-রেজিস্টার্ড ইনভেস্টমেন্ট অ্যাডভাইজার বা রিসার্চ অ্যানালিস্ট নই এবং কোনো কেনা-বেচার পরামর্শ বা টিপস দিই না। শেয়ার বাজারে বিনিয়োগ বাজারের ঝুঁকির অধীন; বিনিয়োগের আগে সব নথি মনোযোগ দিয়ে পড়ুন। অতীতের ফলাফল ভবিষ্যতের নিশ্চয়তা নয়।