Skip to main content
← Back to M Definitions

Moving averages

What Is Moving Averages?

Moving averages are a widely used technical analysis tool designed to smooth out price fluctuations over a specified period. By continuously recalculating the average price of a security or asset, moving averages help to filter out short-term noise and highlight underlying market trends. These mathematical constructs fall under the umbrella of quantitative methods within financial markets, providing a dynamic representation of an asset's average value over time.

History and Origin

The concept of moving averages predates their widespread application in finance, with roots in statistical methods used to analyze time series data. The term "moving average" itself was used by G.U. Yule in 1909 to describe "instantaneous averages" calculated by R.H. Hooker in 1901 for statistical purposes.7,6,5

Their adoption in financial market analysis emerged in the early 20th century. Pioneers like Richard Schabacker laid foundational work, which was further popularized by Robert Edwards and John Magee in their influential 1948 book, "Technical Analysis of Stock Trends."4 The advent of digital computing significantly enhanced the ability to calculate and plot moving averages in real-time, making them an indispensable tool for traders and analysts.3

Key Takeaways

  • Moving averages smooth out price data to reveal clearer trends, reducing the impact of daily volatility.
  • They are a lagging indicator, meaning they reflect past price action rather than predicting future movements.
  • Different types of moving averages exist, with the Simple Moving Average (SMA) and Exponential Moving Average (EMA) being the most common.
  • Moving averages can act as dynamic support and resistance levels.
  • Crosses between different moving averages or between price and a moving average can generate potential buy and sell signals.

Formula and Calculation

The most basic form of a moving average is the Simple Moving Average (SMA). It is calculated by summing the closing prices of an asset over a specified number of periods and then dividing by the number of periods. As each new period concludes, the oldest data point is dropped, and the newest is added, causing the average to "move" over time.

The formula for a Simple Moving Average (SMA) is:

SMA=i=1nPinSMA = \frac{\sum_{i=1}^{n} P_i}{n}

Where:

  • (P_i) = The price of the asset at period (i)
  • (n) = The total number of periods in the calculation

For example, to calculate a 10-day SMA, you would sum the closing prices for the most recent 10 days and divide by 10. This continuous recalculation generates a smooth line on a price chart, helping analysts visualize the average price over the selected timeframe.

Interpreting the Moving Averages

Moving averages are primarily used to identify and confirm trends. When an asset's price remains consistently above its moving average, it often indicates an uptrend, while prices consistently below suggest a downtrend. The slope of the moving average line itself can also signify the strength and direction of a trend. A steep upward slope indicates a strong uptrend, while a steep downward slope points to a strong downtrend.

Beyond trend identification, moving averages can also serve as dynamic support and resistance levels. In an uptrend, a moving average might act as a floor where prices tend to bounce, while in a downtrend, it could serve as a ceiling from which prices retreat. Traders often look for price interactions with the moving average to confirm entries or exits, generating potential buy and sell signals.

Hypothetical Example

Consider a hypothetical stock, "DiversiCo Inc." (DCO), with the following daily closing prices over 10 days:

DayClosing Price
1$100
2$102
3$101
4$103
5$105
6$104
7$106
8$108
9$107
10$109

To calculate the 5-day Simple Moving Average (SMA) for Day 5:
SMA (Day 5) = (\frac{100 + 102 + 101 + 103 + 105}{5} = \frac{511}{5} = 102.20)

For Day 6, the calculation "moves" forward, dropping Day 1's price and adding Day 6's:
SMA (Day 6) = (\frac{102 + 101 + 103 + 105 + 104}{5} = \frac{515}{5} = 103.00)

As the average increases from $102.20 to $103.00, it suggests a strengthening short-term uptrend for DCO, which might influence investment decisions or inform portfolio management strategies.

Practical Applications

Moving averages are a cornerstone in various aspects of financial analysis and trading strategies. They are widely used by traders to:

  • Identify Trends: A common application involves using two moving averages of different lengths (e.g., 50-day and 200-day). A "golden cross" occurs when a shorter-term moving average crosses above a longer-term one, signaling a potential uptrend. Conversely, a "death cross" (shorter-term below longer-term) may indicate a downtrend.
  • Generate Signals: Price crossing above or below a moving average can be used as a simple technical indicators for buy or sell points.
  • Determine Support and Resistance: As discussed, they provide dynamic levels where price action may find support or face resistance.
  • Filter Noise: By smoothing out erratic price movements, they help analysts focus on the broader direction of a security.
  • Economic Analysis: Beyond individual securities, moving averages are also employed in macroeconomic analysis to smooth out volatile economic data, such as unemployment rates or Gross Domestic Product (GDP), revealing longer-term economic market cycles and trends. The Federal Reserve Bank of St. Louis, for example, often presents economic series with moving averages to highlight underlying trends.2

Limitations and Criticisms

While valuable, moving averages have inherent limitations. The most significant is their lagging nature; they are based on past price data and thus react to price changes rather than predicting them. This lag can result in delayed signals, causing traders to miss early entry or exit points.

Another common criticism is the phenomenon of "whipsaws" or false signals, especially in choppy or range-bound markets. During periods without clear trends, moving averages can cross frequently, generating numerous misleading buy and sell signals that can lead to poor outcomes.1 This makes effective risk management crucial when incorporating moving averages into a strategy. Furthermore, the choice of period (e.g., 20-day, 50-day, 200-day) is subjective and can significantly impact the signals generated, making them less reliable without proper calibration and context.

Moving Averages vs. Exponential Moving Average

While "moving averages" is a broad term encompassing several types, the most frequent point of confusion and comparison often arises between the Simple Moving Average (SMA) and the Exponential Moving Average (EMA). The core distinction lies in their calculation and responsiveness to new data.

The Simple Moving Average (SMA), as detailed above, assigns equal weight to all data points within its calculation period. This equal weighting means that older prices have the same impact as recent prices, which can make the SMA slower to react to fresh market developments.

In contrast, the Exponential Moving Average (EMA) gives greater weight to more recent prices, making it more sensitive and responsive to current market action. This accelerated responsiveness can be advantageous in fast-moving markets, but it also means the EMA may generate signals more frequently than an SMA of the same period, potentially leading to more whipsaws in volatile conditions. The EMA's formula uses a smoothing factor that exponentially decreases the weight of older data, ensuring that the most current information has the strongest influence on the average.

FAQs

Q: What is the primary purpose of using moving averages?
A: The main purpose of moving averages is to smooth out price fluctuations to identify and confirm the direction of market trends. They help filter out short-term noise, providing a clearer picture of an asset's underlying momentum.

Q: How do I choose the right period for a moving average?
A: The choice of period (e.g., 10-day, 50-day, 200-day) depends on your trading strategies and investment horizon. Shorter periods (e.g., 10 or 20 days) are more responsive to recent prices and suited for short-term trading, while longer periods (e.g., 50 or 200 days) are used to identify long-term trends and are more stable, providing signals for longer-term investment decisions.

Q: Are moving averages reliable for predicting future prices?
A: No, moving averages are lagging indicators. They are based on past price data and are used to confirm existing trends or identify potential shifts, rather than to predict future price movements. They are best used in conjunction with other technical indicators and forms of analysis.