Indicator Academy

Simple Moving Average

SMA · module 01 of 33 · trend

The average closing price over a fixed number of completed candles.

Simple Moving Average on a chart
EUR/USD · 1h · demo data
Death crossGolden cross1.09051.0791
  • SMA 20
  • SMA 50
  • ▲/▼ where the rule triggers

The fast average crossing the slow one marks a shift in the average price — it confirms a move after it has started.

How to apply it

  1. 1. Add it. Start with 20 and 50 on 5m/15m (Intraday).
  2. 2. Read the market first. Price holding above a rising SMA describes an uptrend; pullbacks toward it are potential continuation zones.
  3. 3. Adjust for ranges. The SMA sits in the middle of the range and price crosses it repeatedly, so crossovers produce constant false signals.
  4. 4. Manage the trade. Place the stop at 1.5 × ATR and the target at 3.5 × ATR, and only act when the chart above shows the trigger.

How it is calculated

SMA(n) = (C₁ + C₂ + … + Cₙ) ÷ n, using closes of completed candles only.

Inputs

  • · Period (n)
  • · Price source (close by default)

Reading it correctly

In a trend

Price holding above a rising SMA describes an uptrend; pullbacks toward it are potential continuation zones.

In a range

The SMA sits in the middle of the range and price crosses it repeatedly, so crossovers produce constant false signals.

Settings by style

StyleSuggested values
Intraday20 and 50 on 5m/15m
Swing50 and 200 on 4h/1D

These are conventional starting points, not optimised values. Test any change on your own pair and timeframe before relying on it.

Worked example

EUR/USD 4h closes: 1.0850, 1.0862, 1.0871, 1.0868, 1.0884. SMA(5) = (1.0850+1.0862+1.0871+1.0868+1.0884)/5 = 1.0867. Price at 1.0884 is above the average, and the average is rising — consistent with an uptrend on this timeframe.

When it failed

In a 30-pip AUD/USD range, price crossed the SMA(20) eleven times in two sessions. Every crossover was a signal and every signal reversed, because the average is the centre of the range rather than a boundary.

Limitations

  • Lags by roughly half the period — it confirms, it never leads.
  • Every candle in the window has equal weight, so an old outlier still moves the line.
  • Needs n completed candles of warm-up before the first valid value.

Works well alongside

  • · ADX / DMI
  • · ATR
  • · Market structure

Redundant with

  • · EMA
  • · WMA
  • · KAMA

Stacking these produces agreement by construction, which is not confirmation.

Practice exercise

Plot SMA(50) on 4h EUR/USD for the last three months. Mark each crossover and record whether ADX(14) was above or below 20 at the time. Count how many crossovers in each group led to a 1R move.

Check your understanding

1. Why does an SMA lag price?
  • · It is calculated from future prices
  • ✓ It averages past closes, so it responds only after several new closes shift the average
  • · It uses tick volume
  • · It is smoothed twice

An average of the last n closes cannot move ahead of the series it averages. The longer the period, the greater the lag.

2. In which condition are SMA crossovers least reliable?
  • · Strong trends
  • ✓ Tight ranges
  • · After a gap
  • · High volatility trends

In a range the average sits in the middle of price action, so price crosses it repeatedly without any directional follow-through.