An SMA treats every close in the window equally, and an EMA gives the newest close a larger weight.
Five closes, 100, 102, 101, 105 and 107, have an SMA of (100 + 102 + 101 + 105 + 107) ÷ 5 = 103.0. Drop the oldest close and add a new one, and every close in the window shifts by the same amount. TradingView's EMA help, read November 26, 2026, says most people use a smoothing factor of 2, so the multiplier on the latest price is 2 ÷ (length + 1). A 9-period EMA uses 2 ÷ 10 = 0.2. If yesterday's EMA was 100 and today's close is 110, today's EMA is 100 + 0.2 × (110 − 100) = 102. The same close moves an SMA of those five bars less, because the new close is only one fifth of the average. Neither line predicts the next close.