An SMA (simple moving average) of period N is the average of the last N closes. It smooths out noise so you can see the underlying direction of price.
Calculation: add up the last N closes and divide by N. With each new bar, the oldest close drops out and the new one comes in: the average “moves”. Closes 10, 11, 12, 13, 14 → SMA 5 = 60 / 5 = 12. New close 16: (11 + 12 + 13 + 14 + 16) / 5 = 13.2.
Reading it: price above a rising SMA describes an uptrend; price below a falling SMA, a downtrend. The slope matters as much as the position: a flat SMA that price keeps crossing signals a market without a trend.
In a trading plan, the SMA is mainly a reference written in advance: “I only buy if the close is above the 50 SMA and the SMA is rising”, or “I exit if the close drops back below the 20 SMA”. Always judge on the close, not on a wick.
Pitfalls: the SMA lags (the average age of its data is (N − 1) / 2 bars); a short period gives many false signals in a range; and it is never a forecast, only a summary of the past.
Examples
MOY-X (fictional market) : The golden curve is the SMA 20: it follows the price with a delay and erases the small waves. As long as the price stays above it, the trend is considered up.
An SMA’s lag, in numbers : In an N-bar SMA, the average age of the closes used is (N − 1) / 2 bars. A daily SMA 200 therefore reflects prices about 100 sessions old on average: that is why it confirms major trends very late.
Key terms
SMA
Arithmetic average of the last N closes
Period
Number of bars used in the calculation
Lag
Delay between a price move and the indicator’s reaction
Smoothing
Reducing small moves to see the trend more clearly