Glossary
Moving average
The average price over a fixed number of recent periods, recalculated each period so it moves along with the chart and smooths out noise.
A moving average is the average of the last N prices, recalculated every period as the newest price enters the window and the oldest one leaves it. Plotted on a chart, it becomes a smooth line that follows price with a delay. Most charting platforms use closing prices by default, though some let you average highs, lows or the midpoint instead.
Moving averages are among the oldest and most widely used chart tools. They do not predict anything; they summarize where price has been so that the direction of the trend is easier to see. The two main types are the simple moving average (SMA), which weights every period equally, and the exponential moving average (EMA), which gives more weight to recent prices.
The basic formula
For a simple moving average: SMA = (P1 + P2 + … + PN) ÷ N, where P1 to PN are the last N closing prices. Each new period, drop the oldest price, add the newest, and divide again.
For an exponential moving average: EMA today = (close − EMA yesterday) × k + EMA yesterday, with k = 2 ÷ (N + 1). The EMA never fully drops old prices; their influence just shrinks over time.
Other variants exist, such as weighted moving averages (linear weights) and Wilder's smoothing, which is used inside RSI and ATR and works like an EMA with k = 1 ÷ N.
How to read moving averages on a chart
Direction. A rising average means recent prices are higher on average than older ones; a falling average means the opposite. A flat average that price crosses repeatedly is typical of a range.
Position. In an uptrend price tends to stay above its moving average; in a downtrend, below it. How far price sits from the average shows how stretched the recent move is compared with its own history.
Two averages together. Many chart readers plot a short and a long average, for example 50 and 200 days on a stock index. When the shorter crosses above the longer, the press often calls it a golden cross; the opposite is a death cross. These names describe a crossing of two lagging lines. They are widely reported but are not reliable signals on their own.
Dynamic reference. Pullbacks in a trend often pause near a widely watched average, partly because many market participants look at the same line. Price also cuts through these averages regularly, so they are zones of attention rather than floors or ceilings.
Choosing a length
Shorter averages follow price closely and turn quickly but produce more false turns. Longer averages are smoother and slower. The length should match the time frame you care about: a 10-period average on an hourly chart describes the last half day of crypto trading, while a 200-period average on a daily chart describes most of a year.
Popular lengths such as 20, 50, 100 and 200 are conventions. Their main advantage is that many people watch them, which is also why price sometimes reacts around them.
Limits and common mistakes
Lag is built in. Every moving average is calculated from past prices, so it always confirms a turn after it has started. In fast reversals the average can be far behind.
Sideways markets produce whipsaws. When price chops around a flat average, crossings happen again and again without any lasting trend.
Over-fitting. Testing dozens of lengths until one fits the past perfectly usually produces a setting that does not hold up later.
Comparing averages across platforms. Different data sources, daily cut-off times in crypto and seeding methods for EMAs can all produce slightly different values.
Questions readers often ask
Which moving average do most people watch? On daily charts of indices and large assets, the 50-day and 200-day averages are the most widely quoted in financial media. Their popularity is the main reason they get attention.
Do moving averages work on intraday charts? The calculation is the same on any time frame. Intraday averages are more affected by the session's open and close in stocks and by thin overnight trading in crypto, so they tend to be noisier.
Related terms
Sources
- StockCharts ChartSchool: Moving Averages, Simple and Exponential
- J. Welles Wilder Jr., New Concepts in Technical Trading Systems (1978)
For education only, not financial advice. Crypto assets and stocks are volatile, and leveraged positions can lose more than the money you put in.