Skip to main content
← Back to M Definitions

Moving average

What Is a Moving Average?

A moving average (MA) is a widely used financial indicator in the field of technical analysis that helps to smooth out price data over a specified period. By creating a constantly updated average price, a moving average mitigates the impact of random, short-term fluctuations, offering a clearer picture of underlying market trends. This smoothing technique is a fundamental tool for analysts and traders seeking to identify the direction of an asset's price movement and potential shifts in momentum. The length of the period chosen for the moving average can vary significantly, from short-term averages spanning a few days to long-term averages covering hundreds of days, each providing different insights into market behavior.

History and Origin

The concept of a moving average for smoothing data has roots dating back centuries in various fields, but its application in financial markets emerged more prominently in the early 20th century. Japanese rice traders are sometimes credited with using early forms of moving averages in the 18th century to analyze market trends. However, the modern adaptation for stock price analysis was pioneered by figures like Richard Schabacker, whose work in the early 1930s laid foundational aspects for its use in identifying trends. This was further expanded by technicians Robert Edwards and John Magee, who helped popularize the technique in their seminal 1948 book "Technical Analysis of Stock Trends." The advent of digital computing significantly enhanced the practicality and widespread adoption of moving averages by enabling more sophisticated calculations and real-time plotting.4

Key Takeaways

  • A moving average is a statistical tool used in technical analysis to smooth price data, making trends easier to identify.
  • It functions as a lagging indicator, as it is based on past prices, providing insights into the historical average over a given period.
  • Common interpretations involve identifying trend direction, and potential support and resistance levels.
  • Different types of moving averages exist, such as simple moving averages (SMA) and exponential moving averages (EMA), each with distinct calculation methods and responsiveness to new data.
  • Moving averages are widely used in developing various trading strategies and assessing market conditions.

Formula and Calculation

The most straightforward type of moving average is the Simple Moving Average (SMA). It is calculated by summing the closing prices of a security over a specified number of periods and then dividing the sum by the number of periods.

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

SMA=P1+P2++PnnSMA = \frac{P_1 + P_2 + \dots + P_n}{n}

Where:

  • ( P_i ) = the price of the asset at period ( i )
  • ( n ) = the total number of periods in the calculation (e.g., days, weeks, months)

For example, to calculate a 10-day SMA, you would add the closing prices of the past 10 days and divide by 10. Each new day, the oldest price is dropped, and the newest price is added, causing the average to "move" along with the price data, constantly updating. This continuous recalculation helps to filter out noise and highlight the underlying market cycles.

Interpreting the Moving Average

Interpreting a moving average primarily involves observing its direction and its relationship to the asset's current price. A rising moving average generally indicates an uptrend, suggesting that the asset's price is increasing over time. Conversely, a declining moving average signals a downtrend, implying that the price is falling. When the current price crosses above the moving average, it is often seen as a bullish signal, while a cross below suggests bearish sentiment.

Moving averages can also act as dynamic support and resistance levels. In an uptrend, a rising moving average might serve as a support level where buyers tend to step in if the price pulls back. In a downtrend, a declining moving average can act as a resistance level, where selling pressure might increase if the price rallies. The longer the period of the moving average, the more significant the support or resistance level is often considered. Traders frequently use multiple moving averages with different periods, such as a 50-day and a 200-day moving average, to gain a comprehensive view of both short-term and long-term trends and potential areas of volatility.

Hypothetical Example

Consider a hypothetical stock, ABC Corp., with the following closing prices over 10 trading days:

DayClosing Price
1$50.00
2$51.00
3$52.00
4$51.50
5$53.00
6$54.00
7$53.50
8$55.00
9$56.00
10$57.00

To calculate a 5-day simple moving average:

  • Day 5 MA: ($50.00 + $51.00 + $52.00 + $51.50 + $53.00) / 5 = $51.50
  • Day 6 MA: ($51.00 + $52.00 + $51.50 + $53.00 + $54.00) / 5 = $52.30
  • Day 7 MA: ($52.00 + $51.50 + $53.00 + $54.00 + $53.50) / 5 = $52.80
  • Day 8 MA: ($51.50 + $53.00 + $54.00 + $53.50 + $55.00) / 5 = $53.40
  • Day 9 MA: ($53.00 + $54.00 + $53.50 + $55.00 + $56.00) / 5 = $54.30
  • Day 10 MA: ($54.00 + $53.50 + $55.00 + $56.00 + $57.00) / 5 = $55.10

As new daily prices are added, the moving average updates. In this example, the 5-day moving average generally shows an upward trend, even with minor daily price fluctuations, indicating sustained positive price action.

Practical Applications

Moving averages are widely applied across various aspects of financial markets for their ability to provide clear visual cues for trend identification. In investing, they are foundational for trend-following strategies. For instance, a common practice involves comparing a security's price to its 200-day moving average to gauge long-term trends; prices consistently above this average are often considered to be in an uptrend, while those below are in a downtrend.

Beyond individual securities, moving averages are used in broader market analysis. Economists and analysts use similar smoothing techniques for macroeconomic data. For example, the Federal Reserve Bank of St. Louis uses smoothed data series, such as the "Smoothed U.S. Recession Probabilities," which helps to filter out short-term noise from economic indicators to reveal underlying trends in the business cycle.3 This allows for a clearer understanding of economic shifts without being distracted by short-term statistical anomalies.

In algorithmic trading, moving averages form the basis of many automated systems. Crossovers between different moving averages (e.g., a short-term moving average crossing a long-term one) are programmed as buy or sell signals. This allows for systematic investment decisions based on quantitative rules rather than discretionary judgment. They are also integrated into more complex indicators like the Moving Average Convergence Divergence (MACD).

Limitations and Criticisms

While invaluable for trend identification, moving averages have inherent limitations. As "lagging indicators," they are based on past price data and thus react to events after they have occurred, rather than predicting them. This means a moving average may generate signals somewhat delayed from the actual turning points in the market. In highly volatile or sideways markets, a moving average can generate numerous false signals, leading to whipsaws and potentially poor trading outcomes.

Academic research has presented mixed conclusions regarding the predictive power of moving averages. Some studies suggest that while moving averages can indicate trends, their ability to consistently generate significant returns above random strategies is limited, particularly in highly efficient markets. For instance, research has explored the effectiveness of moving averages and found that while adding volume information to technical indicators like moving averages can improve investment returns, indicators relying solely on price may not always yield satisfactory results for forecasting stock price trends.2 Another study examining the predictive power of moving averages in the S&P 500 stocks concluded that investors should not rely solely on moving averages due to their limited predictive capabilities, noting that only a few combinations showed marginal outperformance.1 This highlights the importance of using moving averages as part of a broader analysis framework, including risk management, rather than as a standalone tool.

Moving Average vs. Exponential Moving Average

The "Moving Average" most commonly refers to the Simple Moving Average (SMA), which gives equal weight to all data points within its calculation period. In contrast, the Exponential Moving Average (EMA) is a type of moving average that places greater weight and significance on the most recent price data.

The key difference lies in their responsiveness. Because the EMA emphasizes recent prices, it reacts more quickly to new information and recent price changes than the SMA. This makes the EMA more suitable for traders who prioritize current market momentum and desire faster signal generation. The SMA, by averaging all prices equally, provides a smoother line that lags price changes more significantly but may offer a clearer view of the longer-term trend by filtering out more short-term noise. The choice between an SMA and an EMA often depends on a trader's analytical preference and their specific time series analysis needs.

FAQs

What is a "200-day moving average"?

The 200-day moving average is a widely followed long-term moving average that calculates the average closing price of an asset over the past 200 trading days. It is often used to identify significant long-term market trends.

Are moving averages good for predicting future prices?

Moving averages are lagging indicators, meaning they reflect past price action and are not designed to predict future prices. They are best used to identify and confirm existing trends, and as part of a comprehensive technical analysis strategy, rather than as a standalone predictive tool.

Can moving averages be used with other indicators?

Yes, moving averages are frequently combined with other indicators, such as the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), or candlestick charts. This combination can help confirm signals, reduce false positives, and provide a more robust basis for investment decisions.