Simple Moving Average (SMA)
A Simple Moving Average (SMA) is one of the most widely used technical indicators. It smooths price action by taking the average of the last N prices (most commonly the closing price).
โ ๏ธ Risk note: Indicators do not predict the future. Use proper risk management and avoid overleveraging.
Understanding SMA
In plain English: "An SMA helps you see the trend by filtering out short-term noise."
The SMA is simple, but the edge comes from how you combine it with context and risk control.
What Is an SMA?
An SMA is the average of the last N prices. It moves forward one bar at a time, recalculating as new prices arrive. The result is a line on your chart that is smoother than the raw price.
- Shorter SMA (smaller N): reacts faster, but can whipsaw more.
- Longer SMA (larger N): smoother, but reacts slower (more lag).
โ When SMA shines
SMA is most useful as a trend filter and a structure tool (e.g., "price above a rising SMA = bullish bias").
How to Calculate a Simple Moving Average
The formula is straightforward:
Example: 5-period SMA
If the last 5 closing prices are 100, 101, 99, 102, 103, then:
(100 + 101 + 99 + 102 + 103) รท 5 = 101
That value plots as the SMA point for the current bar.
Do traders always use the closing price?
Most platforms default to the close, but you can apply an SMA to other inputs (open, high, low, typical price). Consistency matters more than "perfect" selection.
SMA Lines on a Price Chart
Price with 20, 50, and 200 SMA Overlay
Notice how shorter SMAs track price more closely, while longer SMAs create smoother trend lines.
Common SMA Settings (20 / 50 / 200)
SMA settings are often chosen because many market participants watch the same levels, which can make them self-reinforcing at times.
Short-Term Structure
Momentum/rhythm on the current timeframe
Medium-Term Trend
Trend bias and pullback zones
Long-Term Reference
Major trend regime (bullish/bearish context)
โ ๏ธ Important
"Best" depends on timeframe. A 200 SMA on a 5-minute chart is not the same as a 200 SMA on a daily chart. Always match settings to your trading horizon.
How Traders Use the SMA
1) Trend filter
- Above SMA + SMA rising: bullish bias (often).
- Below SMA + SMA falling: bearish bias (often).
2) Dynamic support and resistance
In trends, price often pulls back towards a popular SMA (e.g., 20 or 50) and then continues โ but it can also break through.
3) Crossovers (signal style)
Traders use crossovers in two main ways:
- Price/SMA crossover: price crosses above/below an SMA (simple, but can whipsaw).
- SMA/SMA crossover: a fast SMA crosses a slow SMA (e.g., 50 over 200).
4) Market regime: trend vs range
When price repeatedly crosses back and forth through an SMA and the SMA is flat, the market may be ranging and trend signals can be less reliable.
Example crossover idea
If a faster SMA crosses above a slower SMA, some traders interpret that as increasing bullish momentum. However, crossovers are lagging and can trigger late in fast markets.
โ Best practice
Use the SMA as a filter (bias) and use price action/levels for entries. Avoid treating the SMA as a stand-alone "buy/sell button".
Common SMA Mistakes
- Overfitting settings: changing the SMA length until past trades look perfect.
- Ignoring volatility: an SMA can whipsaw in choppy conditions; consider pairing with ATR or a volatility filter.
- Trading every crossover: many crossovers fail in ranges; context matters.
- Forgetting timeframes: signals on a 5-minute chart can contradict the daily trend.
Operational note
A moving average is a mathematical summary of the past. It will always lag. The goal is not prediction โ it's better decision-making.
Quick Checkpoint: Do You Understand SMA?
Check if you can answer these in your own words:
- What does an SMA measure?
- What happens when you increase N (e.g., from 20 to 200)?
- Name two common uses of an SMA.
Continue learning: Next lesson covers the Exponential Moving Average (EMA) โ a variation that gives more weight to recent prices.
Frequently Asked Questions: SMA
Is SMA better than EMA?
Neither is universally better. SMA is simpler and smoother, while EMA reacts faster to recent prices. The best choice depends on your strategy and timeframe.
Why do traders watch the 200 SMA?
It is a popular long-term reference. Many traders use it to gauge trend regime and potential areas where price may react due to broad attention.
Can I use SMA on any market?
Yes. SMAs can be applied to forex, indices, commodities, equities, and crypto. Performance depends on market structure, volatility, and whether the market is trending.
What timeframe should I use?
Use a timeframe that matches your holding period. Day traders often use intraday timeframes; swing traders often use 4H/D1 and longer settings. Keep it consistent and test realistically.
Summary: SMA in Your Trading
The Simple Moving Average (SMA) is a foundational indicator that smooths price to help identify trend direction and structure.
Common settings include 20, 50, and 200 periods. Use SMA primarily as a trend filter and context tool, and combine it with levels, volatility, and risk management.
Key takeaway: SMA is a trend context tool โ use it to confirm bias and identify structure, not as a standalone entry signal.
Continue Your Learning Journey
Ready to dive deeper into moving averages and technical indicators? Explore more resources or start your personalized trading course.