Moving Averages

What Is a Moving Average?

A Moving Average (MA) is a widely used stock indicator in technical analysis. Its primary purpose is to smooth out price data by continuously updating an average price. The calculation of a moving average aims to reduce the influence of short-term fluctuations in stock prices over a specified period. There are two main types: Simple Moving Averages (SMAs), which employ a straightforward arithmetic mean of prices over a given timeframe, and Exponential Moving Averages (EMAs), which assign more significance to recent prices compared to older ones within the timeframe.

Understanding a Moving Average (MA)

Moving averages serve multiple purposes in the analysis of financial instruments, including identifying trend direction and determining support and resistance levels. As a trend-following or lagging indicator, it relies on historical price data. The length of the moving average period directly impacts its lag. For instance, a 200-day moving average exhibits a more pronounced lag compared to a 20-day MA due to encompassing prices over a longer timeframe. Notably, the 50-day and 200-day moving averages are widely monitored by traders and investors.

Traders may select different period lengths for moving averages based on their specific trading goals. Shorter MAs are typically favored for short-term trading strategies, whereas longer-term ones are favored by investors with longer time horizons. While predicting the future price movement of anything is inherently uncertain, employing technical analysis and conducting thorough research can enhance predictive capabilities. Generally speaking, a rising moving average suggests an uptrend in an asset, while a declining moving average indicates a downtrend.

Types of Moving Averages

Simple Moving Average

A simple moving average (SMA) is computed by calculating the arithmetic mean of a designated set of values across a predetermined period. This involves summing up a series of numbers, such as stock prices, and then dividing the total by the count of values in the set. Charting prices of a trading instruments utilizing an SMA would look in the following way:

Exponential Moving Average (EMA)

The exponential moving average assigns greater significance to recent prices, aiming to render them more responsive to new information. To compute an EMA, the initial step involves calculating the simple moving average (SMA) across a specific period. Subsequently, the multiplier for weighting the EMA, termed the “smoothing factor,” is determined. This typically adheres to the formula: [2 / (selected time period + 1)].

For a 20-day moving average, the multiplier would be calculated as [2 / (20 + 1)] = 0.0952. This smoothing factor is then applied in conjunction with the previous EMA to compute the current value. Consequently, the exponential moving average assigns greater weight to recent prices, contrasting with the simple moving average, which evenly weighs all values.

The calculation for EMA emphasizes recent data points, making it a weighted average computation. As depicted in the figure below, both the EMA and SMA employ 20 periods for their averages. However, the EMA demonstrates a quicker response to price fluctuations compared to the SMA. When prices are on the rise, the EMA tends to exhibit a higher value than the SMA, and conversely, it declines more rapidly than the SMA when prices are falling. This heightened responsiveness to price changes constitutes the primary rationale behind why certain traders favor the EMA over the SMA.

What is Moving Average Convergence Divergence (MACD)?

MACD is a tool utilized by traders to assess the relationship between two moving averages. It is calculated by subtracting a 26-day exponential moving average from a 12-day exponential moving average. Additionally, MACD incorporates a signal line, which aids in identifying crossovers. This signal line, also an exponential moving average, spans nine days and is plotted on the same graph as the MACD line. It serves to pinpoint shifts in trend within a security’s price and validates the strength of said trend. A positive MACD value indicates that the short-term average surpasses the long-term average, suggesting upward momentum. Conversely, when the short-term average falls below the long-term average, it signifies a downward momentum.

The Golden Cross Pattern

A golden cross refers to a chart pattern characterized by a short-term moving average crossing above a long-term moving average. This pattern typically emerges as a bullish breakout, featuring a crossover where a trading instrument’s short-term moving average (e.g., the 15-day moving average) surpasses its long-term moving average (e.g., the 50-day moving average). Given that long-term indicators are considered more significant, the occurrence of a golden cross signifies a potential bull market ahead. This signal is further validated when accompanied by high trading volumes.

Conclusion

A moving average is commonly used in technical analysis to help smooth out price data by creating a constantly updated average price. A rising moving average indicates that the asset under scrutiny is in an uptrend, while a declining moving average indicates a downtrend. The exponential moving average is generally preferred to a simple moving average as it gives more weight to recent prices and shows a clearer response to new information and trends.

Share this lesson:

Do You Have Any Questions?