Stockertim Dictionary · Technology · Markets
Moving average
Also called MA, rolling average
In short
The average of the most recent set number of data points, recalculated as each new point arrives, used to smooth out short-term noise and show the underlying trend.
- Beginner
- Ratio or metric
- Checked
In detail
A moving average takes a fixed window, such as the last 20 trading days, and averages the values inside it. Each day the oldest value drops out and the newest is added, so the average moves along with the data. The result is a smoother line that is less affected by single-day jumps. Longer windows smooth more but react more slowly; shorter windows follow the data closely but keep more of the noise.
The simple moving average gives every point in the window equal weight. The exponential moving average gives more weight to recent points, so it responds faster to changes. Statisticians also use centred moving averages, which place the average in the middle of the window, to strip out seasonal patterns from economic data such as monthly retail sales.
In markets moving averages are among the most widely used tools of technical analysis. Traders watch whether a price is above or below its 50-day or 200-day average, and some treat a shorter average crossing a longer one as a signal. Because a moving average is built from past prices, it always lags: it confirms a trend after it has started and can give false signals when prices move sideways. It describes what has happened rather than what comes next.
Formula
SMA = (P1 + P2 + ... + Pn) / n
- SMA
- the simple moving average
- P1
- the first price in the window (P2 the second, up to Pn, the most recent)
- n
- the number of periods in the window
Worked example
A share closes at ₦10, ₦12, ₦14, ₦13 and ₦16 over five days. Take a 3-day simple moving average.
- Day 3: (10 + 12 + 14) / 3 = 12
- Day 4: (12 + 14 + 13) / 3 = 13
- Day 5: (14 + 13 + 16) / 3 = 14.33
The 3-day average rises from ₦12 to ₦14.33, smoother than the daily closes.
In practice
Charting tools let users overlay 20, 50 and 200-day averages on price charts. Statistics offices publish three-month rolling averages of figures such as unemployment to reduce month-to-month noise. Analysts use them to compare a price with its recent norm.
Watch out
- A moving average lags the data by design, so signals arrive after the move has begun.
- Crossovers that worked in one period often fail in another; treat them as descriptions, not forecasts.
Learn it properly
- What are moving averages?15 min lesson Free course: Reading the news & markets: Intermediate
- Moving averages and seasonality in financial data15 min lesson Free course: Portfolio analytics, forecasting and dashboards
- Forecasting and demand planning15 min lesson Free course: Operations and supply chain management
- Indicators: what RSI and MACD compute, and nothing more15 min lesson Free course: Charts in context: technical analysis and its limits
- Lab 4: SQL on a price table15 min lesson Free course: Financial Data Lab
Official sources
- Engineering Statistics Handbook: moving average · National Institute of Standards and Technology
Facts last checked on 1 November 2026.
Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.