Home/Glossary/Moving average
Patterns & charts

What is moving average?

A moving average is the average closing price over a set number of recent periods, recalculated each period, which smooths price into a line that shows the underlying trend.

The simple moving average (SMA) weights every period equally; the exponential moving average (EMA) gives more weight to recent prices, so it reacts faster. Common lengths are 20, 50, 100 and 200 periods. Because it is built from past prices, every moving average lags: it confirms a trend after it has started and turns after it has ended. CryptoPatterns.ai uses simple daily averages: the 100-day and 200-day for Bitcoin’s trend on the market regime page, and the 50-day and 200-day on coin pages.

Formula
SMA = sum of the last n closes ÷ n; EMA today = price × k + EMA yesterday × (1 − k), with k = 2 ÷ (n + 1)

Why it matters

Moving averages are the most common way to define a trend, and many other tools are built on them: golden and death crosses, trend filters, MACD and Bollinger Bands. Knowing that they lag explains both their value (they ignore much of the noise) and their cost (late entries and exits, and whipsaws in sideways markets).

Example

Say BTC’s last five daily closes were $58,000, $59,000, $60,500, $61,000 and $61,500. The 5-day SMA is $60,000, so price at $61,500 sits 2.5% above it. A 200-day SMA works the same way with 200 closes, which is why it moves slowly and is widely watched as a long-term trend line.

Common mistakes

  • Treating every cross of price and average as a signal, without regard for how often it whipsaws in ranges.
  • Comparing SMA and EMA levels as if they were the same line.
  • Choosing the length that looked best on past data, which is overfitting.

Questions

What is the 200-day moving average?

The average of the last 200 daily closes. It is one of the most-watched long-term trend lines in crypto, and being above or below it is a common shorthand for a bull or bear trend. Coin pages such as Bitcoin show where each coin sits against its 200-day and 50-day averages.

Should I use an SMA or an EMA?

An EMA turns sooner and gives more false turns; an SMA is steadier and later. Neither is better in general: the choice is a trade-off between speed and noise.

Related terms

Part of the crypto trading glossary. Definitions are educational, not financial advice.