Simple Moving Average (SMA) Indicator Guide
SMA calculates the arithmetic mean of closing prices over a specified period, smoothing price data to identify the direction of a trend.

Settings — SMA
| Category | trend |
| Default Period | 20 |
| Best Timeframes | H1, H4, D1 |
The Simple Moving Average is one of the oldest price-smoothing tools in technical analysis — and still one of the most widely cited in institutional research. By flattening short-term price noise into a single line, the SMA gives traders a visual reference for trend direction and potential reversal zones. Its simplicity is both its strength and its most debated limitation.
Key Takeaways
- The math is straightforward. Add the closing prices of the last N candles, then divide by N. With the default period of ...
- Price position relative to the SMA line is the primary signal. When price closes above the 20-period SMA, the short-term...
- A surprising number of traders use the same 20-period setting across all timeframes without adjusting for the structural...
1How the SMA Calculates Price Direction
The math is straightforward. Add the closing prices of the last N candles, then divide by N. With the default period of 20, the SMA sums the 20 most recent closing prices and divides by 20. Each new candle shifts the window forward by one, dropping the oldest price and adding the newest. That rolling calculation is what produces the smooth curve visible on a chart.
Because every data point in the window carries equal weight, a price spike from 15 sessions ago influences the SMA just as much as yesterday's close. This is the core mechanical difference between the SMA and exponential variants like the EMA, which assign progressively lower weight to older data. Research published in the Journal of Financial Economics as far back as 1992 found that simple moving average crossover rules generated statistically significant returns in foreign exchange markets over multi-decade samples — a finding that sparked decades of follow-on debate.
The output is unbounded, meaning the SMA line can appear at any price level. It tracks the market rather than oscillating within a fixed range, which places it firmly in the trend-following category of indicators.
2Reading SMA Signals: Entries, Exits, and Divergence
Price position relative to the SMA line is the primary signal. When price closes above the 20-period SMA, the short-term bias is considered bullish. When price closes below it, the bias shifts bearish. That single relationship drives the majority of SMA-based trading rules.
Crossover signals are more specific. A bullish crossover occurs when a shorter-period SMA — say, the 10-period — crosses above a longer one, such as the 50-period. The reverse signals potential selling pressure. The so-called 'Golden Cross' (50-day SMA crossing above the 200-day SMA) and 'Death Cross' (the opposite) are tracked by major financial media outlets and can influence institutional order flow, particularly on daily charts.
Divergence between price action and the SMA slope tells a different story. Price making new highs while the SMA slope flattens or turns down suggests momentum is weakening even if trend direction hasn't reversed yet. This setup is commonly used as an early warning rather than a standalone entry signal.
False signals are frequent in ranging markets. The SMA does not distinguish between trending and sideways conditions, so price can cross the line repeatedly without establishing directional movement. Many practitioners pair the SMA with a volatility measure — such as Average True Range — to filter out low-conviction crossovers.
“A surprising number of traders use the same 20-period setting across all timeframes without adjusting for the structural differences between intraday and daily charts.”
3Optimal SMA Period Settings by Timeframe
A surprising number of traders use the same 20-period setting across all timeframes without adjusting for the structural differences between intraday and daily charts. The results vary significantly.
On the H1 timeframe, the 20-period SMA covers approximately 20 hours of trading — just under one full trading day. This makes it responsive enough to catch intraday momentum shifts but still filters out tick-level noise. Scalpers sometimes compress to a 10-period on H1, accepting more false signals in exchange for earlier entries.
The H4 timeframe is where the 20-period SMA covers roughly one trading week (20 bars × 4 hours = 80 hours). At this scale, the indicator captures swing-level trend direction and aligns well with weekly institutional positioning cycles. The 50-period SMA on H4 is also widely used, representing approximately 200 hours or about five trading weeks.
On the D1 chart, the 20-period SMA represents one calendar month of trading days. The 50-period and 200-period daily SMAs carry the most institutional recognition at this timeframe. The 200-day SMA in particular is referenced in equity and forex market commentary as a dividing line between long-term bull and bear regimes. In 2023, multiple major currency pairs spent extended periods using the 200-day SMA as dynamic support during Federal Reserve rate cycle positioning.
Shorter periods (under 10) increase signal frequency and noise simultaneously. Periods above 200 on intraday charts produce lines so slow they offer little actionable information for active trading.
Top Brokers

About the Author
Daniel Harrington
Senior Trading Analyst
Daniel Harrington is part of the Pulsar Terminal team, where he leads the blog and editorial content. With over 12 years of experience in forex and derivatives markets, he covers MT5 platform optimization, algorithmic trading strategies, and practical insights for retail traders.

Risk Disclaimer
Trading financial instruments carries significant risk and may not be suitable for all investors. Past performance does not guarantee future results. This content is for educational purposes only and should not be considered investment advice. Always conduct your own research before trading.
Use This Indicator
Use This Indicator — SMA
Advanced charting and real-time SMA analysis on MetaTrader 5.
Get Pulsar Terminal