Technical Analysis

SMA

Last Updated
Quick Definition

SMA — Simple Moving Average (SMA) calculates the arithmetic mean of prices over a specified period, giving equal weight to all data points.

Track SMA with PipJournal

SMA (Simple Moving Average) is the most straightforward moving average—it treats all prices equally, making it ideal for identifying long-term trends and major support/resistance levels.

How SMA Works

SMA calculates the arithmetic mean of prices over a period. Each new bar drops the oldest price and adds the newest one.

Example: 20-period SMA

  • Sum the last 20 closing prices: $1,050 + $1,052 + … + $1,048 = $21,000
  • Divide by 20: $21,000 ÷ 20 = $1,050 SMA

The SMA line plots at 1,050, then recalculates with the next bar.

SMA vs. EMA: The Key Difference

FeatureSMAEMA
CalculationEqual weight to all pricesMore weight to recent prices
ResponsivenessSlow, lags priceFast, tracks price closely
NoiseSmoother, fewer false signalsMore responsive, more whipsaws
Best ForMacro trends, long-termShort-term, precise entries

A 20-period SMA follows price loosely. A 20-period EMA follows it tightly. Longer-term traders (swing traders, position traders) prefer SMA.

Real-World EURUSD Example

EURUSD 4-hour chart, 50-period SMA

  • Price rallies from 1.0850 to 1.0950
  • 50-SMA sits at 1.0880 (acting as support)
  • Price pulls back, bounces at 1.0880 (50-SMA holds)
  • Uptrend is confirmed; 50-SMA = dynamic support

Later:

  • Price breaks below 1.0880
  • 50-SMA support is broken
  • Downtrend likely beginning
  • Exit longs

This is how SMA works in practice—it identifies major support/resistance levels that price respects.

SMA Periods and Their Uses

PeriodPurposeBest For
10-20Short-term momentumScalping, day trading
50Medium-term trendSwing trading
100Longer-term trendPosition trading
200Major trend, macro support/resistanceAny timeframe, macro analysis

The 200-SMA is particularly important. On daily charts, it often marks the boundary between long-term uptrends and downtrends. Price above 200-SMA = bull market, price below = bear market.

Using Multiple SMAs for Trend Confirmation

Combining 2-3 SMAs reduces false signals:

Conservative Setup: 50/100/200 SMAs

  1. Price above all three = strong uptrend
  2. 50-SMA above 100-SMA, 100 above 200 = trend alignment
  3. Trade longs only when this alignment holds

Entry: Price bounces off 50-SMA with 50 above 100 above 200 Exit: Price breaks below 50-SMA or 50-SMA crosses below 100-SMA

This filters out choppy price action and false signals.

SMA as Dynamic Support/Resistance

SMAs act like invisible support and resistance levels:

In Uptrends:

  • Price makes higher lows at the SMA
  • SMA acts as dynamic support
  • Each pullback bounces predictably

In Downtrends:

  • Price makes lower highs at the SMA
  • SMA acts as dynamic resistance
  • Each bounce gets rejected at SMA

Use SMA to place intelligent stop losses. Place stops just below the SMA (in uptrends) or just above (in downtrends).

The 50/200 SMA Crossover

One of the most reliable long-term signals:

50-SMA crosses above 200-SMA = Bullish (Golden Cross)

  • Signals potential start of long-term uptrend
  • Better position trades than day trades
  • Lags; significant move may have already happened

50-SMA crosses below 200-SMA = Bearish (Death Cross)

  • Signals potential start of long-term downtrend
  • Exit longs, consider shorts

This works on daily and weekly charts for swing/position traders. On 1-hour charts, it produces false signals.

SMA Lag: The Trade-off

SMA lags price because it treats old data equally with new data. This is a feature, not a bug:

  • Pros: Smooth, fewer false signals, good for trend identification
  • Cons: Entry is late, exit is late, misses early moves

Use SMA for direction confirmation, not precise entry timing. Combine with candlestick patterns or RSI for entry timing.

Real-World Swing Trade Example

EURUSD Daily Chart, 50 and 200-SMA

Day 1: 50-SMA crosses above 200-SMA (golden cross, bullish signal) Day 3: Price confirms above both, enters long at 1.1000 Stop loss: 1.0950 (below 50-SMA) Take profit: 1.1100 (previous resistance)

Trade wins +100 pips. This is a classic SMA-based swing trade.

Key Takeaway

SMA is the clearest trend-following tool. It lags price but produces fewer false signals than faster indicators. Use the 50-SMA for medium-term trends and the 200-SMA for major support/resistance.

Combine 2-3 SMAs for alignment confirmation. Track which periods work best for your timeframe and system.

PipJournal lets you annotate trades with the SMA period and bounce/break that triggered your entry, so you can measure which SMA setups are actually profitable.

Common Questions

How is SMA different from EMA?

[EMA](/learn/glossary/ema) gives more weight to recent prices, making it faster and more responsive. SMA treats all prices equally, making it smoother and more lag-prone. EMA is better for short-term, SMA for long-term.

What's the SMA formula?

SMA = (Close1 + Close2 + ... + CloseN) ÷ N. For a 20-period SMA, add the last 20 closing prices and divide by 20. Repeat this for each bar.

What's a good SMA period for day trading?

Shorter periods (5, 10, 20) are more responsive but produce false signals. Longer periods (50, 100, 200) are smoother but lag price. Most day traders use 20 or 50 combined.

Can SMA work for swing trading?

Yes. A 50 or 100-period SMA on daily charts is excellent for identifying swing trade entries and exits. Longer periods work better for swing trading than shorter ones.

Is SMA better for support/resistance than EMA?

No, EMA tends to be a better dynamic support/resistance level because it responds faster to price. But many traders use both—SMA acts as major support/resistance, EMA as fine-tuning.

Share this article

Track SMA Automatically

PipJournal calculates your sma and other key metrics from your trade data. Import trades and get instant insights.

SSL Secure
One-Time Payment
No credit card required
4.8/5 (47 reviews)