Logo

Forex

Weighted Moving Average (WMA): Calculation and Interpretation

By Nathalie Okde

20 September 2024

weighted-moving-average

The weighted moving average (WMA) is a technical analysis indicator that helps traders determine market trends, identify reversals, and filter market noise.

This article explains how to calculate and interpret the WMA correctly.

Key Takeaways

  • The WMA gives more importance to recent prices, allowing traders to respond to market changes quickly.

  • It is especially useful for short-term trading, where capturing the latest trends is crucial.

  • The WMA can act as a dynamic support or resistance level, helping traders identify key entry and exit points.

  • Despite its advantages, the WMA’s sensitivity can sometimes produce false signals, particularly in volatile markets.

What is the Weighted Moving Average (WMA)?

The Weighted Moving Average (WMA) is a type of moving average used in technical analysis that assigns different weights to each data point within a specified period.

This moving average places more weight on the most recent prices, making it more responsive to new information.

The WMA approach helps traders understand the current trend by emphasizing the most relevant data points.

How to Calculate the Weighted Moving Average

To calculate the Weighted Moving Average, you multiply each price point by a predetermined weight and then sum these values. The most recent prices get the highest weights, while older prices get lower weights.

This weighted sum is then divided by the sum of the weights to produce the WMA.

how-to-calculate-weighted-moving-average

Here’s the WMA calculation step by step:

  1. Select the period: Decide the number of periods you want to include in the WMA calculation.
    For example, if you choose a 5-day WMA, you will calculate the average based on the prices of the last five days.

  2. Assign weights to each data point: The most recent data point receives the highest weight, and the weights decrease as you go further back in time.
    For a 5-day WMA, the weights might be 5 for the most recent day, 4 for the day before that, and so on, down to 1.

  3. Multiply each price by its corresponding weight: Multiply the closing price of each day by its assigned weight.

  4. Sum the weighted prices: Add up all the weighted prices from step 3.

  5. Divide by the sum of the weights: The final step is to divide the sum of the weighted prices by the sum of the weights.

WMA Formula

The formula for the Weighted Moving Average is:

weighted-moving-average-formula

Where:

  • P1, P2, ... are the prices for each day in the period.

  • W1, W2,... are the corresponding weights for each price, with the most recent price having the highest weight.

Example Calculation

If you are calculating a 5-day WMA, the weights might be 5, 4, 3, 2, and 1, and the prices for the last five days might be $20, $21, $22, $23, and $24.

Therefore, using the WMA formula is:

weighted-moving-average-example

So, the 5-day WMA would be 22.67.

This calculated WMA value would then be plotted on a chart to help traders analyze trends and make informed decisions.

Different Types of Moving Averages

Moving averages come in various forms, each with its unique characteristics.

Understanding these differences can help you choose the most suitable moving average for your trading strategy.

Simple Moving Average vs. Weighted Moving Average

The Simple Moving Average (SMA) and the Weighted Moving Average (WMA) both simplify price data to identify trends. However, they do so differently.

  • SMA: Equally weighs all data points, effectively smoothing trends but may lag behind recent market changes.

  • WMA: Prioritizes recent data, making it more responsive to price shifts and delivering quicker signals.

Exponential Moving Average vs. Weighted Moving Average

Both the Exponential Moving Average (EMA) and the Weighted Moving Average (WMA) are designed to give more significance to recent price data, but they use different methods.

  • EMA: Uses exponentially decreasing weights on older prices, making it highly responsive to recent market changes.

  • WMA: Employs a simpler linear weighting system, which still emphasizes recent prices but is slightly less responsive than the EMA.

What Is the Difference Between a Moving Average and a Rolling Average?

The terms Moving Average and Rolling Average are often used interchangeably, but there is a subtle difference.

  • Moving Average: Calculates the average of a specific number of data points, adjusting as it progresses through the data series.

  • Rolling Average: Often synonymous with moving average, but can also describe an average that continuously updates, providing ongoing smoothing over time.

What is a Triangular Moving Average?

The Triangular Moving Average (TMA) is a more advanced type of moving average that applies double smoothing to the data, emphasizing the middle portion of the data series.

This results in a much smoother trend line, which can be particularly useful in markets with high volatility.

The TMA reduces the impact of extreme highs and lows, making it easier to identify the underlying trend by filtering out short-term noise.

What Is a Double Exponential Moving Average?

The Double Exponential Moving Average (DEMA) is an advanced version of the Exponential Moving Average. It involves applying the EMA calculation twice, significantly reducing the lag associated with traditional moving averages.

The DEMA responds more quickly to price changes, making it a valuable tool for traders making quick decisions based on the most recent market data.

Its ability to minimize lag while still smoothing out price data makes it an attractive option for those looking for more immediate trend signals.

How to Use WMA in Trading

Now that you know how to calculate the weighted moving average, here’s how to interpret and use the result in your trading strategies.

wma-uses-in-trading

1. Determine the Trend Direction

The weighted moving average can help you determine the trend direction.

  • Uptrend: If the WMA is rising, it suggests that the prices are trending upwards. This means the recent prices are consistently higher than the previous ones, indicating a bullish market.

  • Downtrend: If the WMA is falling, it indicates that prices are trending downwards, with recent prices lower than previous ones, signaling a bearish market.

The steepness of the WMA's slope can also give clues about the trend's strength. A steeper slope suggests a stronger trend, while a flatter slope indicates a weakening trend.

2. Understand the Crossovers

When the price crosses above the WMA, it could signal a buying opportunity, as it may indicate the start of an upward trend.

On the other hand, when the price crosses below the WMA, it could be a signal to sell, as it might indicate the start of a downward trend.

Moreover, traders often use multiple WMAs with different periods (e.g., a short-term WMA and a long-term WMA).

  • When the shorter-term WMA crosses above the longer-term WMA, it's called a "golden cross," often viewed as a bullish signal.

  • When the shorter-term WMA crosses below the longer-term WMA, it's known as a "death cross," typically seen as a bearish signal.

3. Use the WMA as Support and Resistance Levels

The WMA can act as a dynamic support or resistance level.

  • In an uptrend, the WMA often serves as a support level, where prices tend to bounce off.

  • In a downtrend, it may act as a resistance level, where prices struggle to break above.

Observing how prices interact with the WMA can help traders identify potential entry or exit points.

4. Identify Reversals

The weighted moving average (WMA) can help indicate a potential trend reversal in the below cases:

  • If the price is making new highs while the WMA fails to make new highs

  • If the price is making new lows while the WMA isn’t confirming the new lows

Moreover, when the WMA flattens out after a significant uptrend or downtrend, it might signal that the current trend is losing momentum, and a reversal or sideways movement could be on the horizon.

5. Filter Market Noise

The WMA can help filter out short-term price fluctuations or "noise," giving traders a clearer view of the underlying trend.

By focusing on the WMA, traders can avoid being misled by minor price movements that don’t reflect the true direction of the market.

Advantages of WMA

The weighted moving average can be very beneficial for traders:

  • The Weighted Moving Average is highly sensitive, allowing it to respond quickly to recent price changes.

  • It is particularly effective for short-term trading, capturing short-term trends more accurately.

  • The WMA reduces lag by focusing on recent data and providing more up-to-date signals.

  • This method offers timely trading signals, making it more effective in dynamic market conditions than simpler moving averages.

Limitations of the Weighted Moving Average

Despite its advantages, the weighted moving average indicator has its limitations:

  • The increased sensitivity of the WMA can lead to more false signals, especially in volatile markets.

  • Its calculation is more complex than that of the Simple Moving Average, which might make it less accessible for some traders.

  • The WMA’s heightened responsiveness may not offer significant advantages in stable or low-volatility markets.

  • The WMA may sometimes place too much emphasis on recent data, potentially overlooking longer-term trends.

Conclusion

Therefore, the weighted moving average (WMA) is an important indicator to incorporate into your trading strategies.

Whether you’re trading stocks, forex, or commodities, the WMA can enhance your trading strategy by providing timely signals.

If you’re seeking a reliable trading platform to apply these strategies, join XS, as we offer you a wide range of tools and resources to help you succeed in the financial markets.

FAQs

1. Which Is Better EMA or WMA?

The choice between EMA and WMA depends on your trading style. The EMA reacts more quickly to recent price changes, while the WMA provides a smoother trend line.

Both have advantages, and the best one depends on your specific needs.

2. Is Weighted Moving Average a Good Indicator?

Yes, the WMA is a good indicator, especially for traders who want to capture short-term trends. Its ability to emphasize recent data makes it a reliable tool in various market conditions.

3. What Is the Difference Between Moving Average and Weighted Moving Average?

The primary difference is that the WMA prioritizes recent prices, making it more sensitive to current market conditions than the simple moving average, which treats all prices equally.

4. What Is an Advantage of a Weighted Moving Average?

The main advantage of the WMA is its responsiveness to recent price changes, allowing traders to detect trends and reversals more quickly.

5. Which Type of Moving Average is Best?

There is no one-size-fits-all answer. The best moving average for trading depends on your goals. The WMA is ideal for those looking for a more responsive indicator, while the SMA and EMA each have their own strengths in different trading scenarios.

Share this blog: