I tested 30 Dow Jones stocks with four Weighted Moving Average (WMA) on 960 years of data to analyze their success rates and reliability.
The Weighted Moving Average (WMA) is a technical analysis trend indicator that assigns greater significance to recent data points. This weighting reduces the inherent lag in moving averages and creates more losing trades.
But does it mean the WMA is more reliable or profitable than other moving average indicators?
Our research reveals that the WMA underperforms other moving averages, with only a 7% win rate on a standard OHLC chart. However, using it on Heikin Ashi charts produces excellent results. Due to its incredibly poor performance, using WMA on candlestick charts is not advised.
Research Results
- The WMA adds weight to the most recent price closes.
- WMAs work well on strongly trending markets and equities.
- WMAs tend to underperform in range-bound markets.
- Traders should use longer WMAs to identify the overall trend and shorter WMAs for more short-term price movements.
What is a Weighted Moving Average?
A weighted moving average (WMA) is a technical analysis indicator that uses the same principles as other moving averages but with different calculations. In contrast to a simple moving average (SMA), where each data point has an equal weighting, in a WMA, more recent data points are given greater weight, while older data points are given less weight.
A weighted moving average (WMA) is a moving average that assigns different weights to each data point within the period. The most recent data points are given more weight than earlier ones, which reduces noise and increases the sensitivity of the average to short-term movements in price.
My thorough testing awarded TradingView a stellar 4.8 stars!
With powerful stock chart analysis, pattern recognition, screening, backtesting, and a 20+ million user community, itโs a game-changer for traders.
Whether you're trading in the US or internationally, TradingView is my top pick for its unmatched features and ease of use.
Explore TradingView โ Your Gateway to Smarter Trading!
How does it work?
A WMA is calculated by multiplying each data point by an exponential multiplier and then summing up the total. The exponential multiplier used in a WMA is typically based on the length of the period (the number of previous periods to consider).
It can be calculated using the formula n/(n+1)^2.
A WMA is used to identify trends and potential reversals in a stock price or other assets. It can also be used for smoothing data points, as the exponential multiplier gives more weight to recent data points and less weight to older ones. The goal of using a WMA is to reduce the noise in the data points, making them easier to compare and analyze. Ultimately, it can help traders make informed decisions about their investments.
The benefits of using a WMA over other moving averages include its ability to be responsive to short-term changes in an asset’s price. This means it can detect trends and changes faster than longer moving averages. Additionally, WMA’s are slightly less prone to whipsaw signals, meaning that the trader pays less in trading costs when using a WMA.
Although traders use the weighted moving average to identify market trends, this strategy falls short, according to our testing. It’s not recommended as a tool for determining when to buy and sell assets based on their historical performance.
Instead, it’s best used as a support or resistance indicator, offering insight into potential price movements. Remember, successful trading strategies incorporate multiple indicators for decision-making.
Example Chart: Weighted Moving Averages
This chart shows the weighted moving average traffic light system. Three moving averages are plotted on the chart: the 10-period WMA in green, the 50-period WMA in amber, and the 100-period WMA in red.
Chart Created with TradingView
Calculation
To calculate a weighted moving average, the most recent price is multiplied by the weight assigned to it. This product is then added to the next most recent price, times its weight, and so on, until all prices within the specified period have been factored in. The sum of these products is then divided by the sum of all weights, which yields the average.
The weighted moving average formula.
The formula for a simple Weighted moving average (WMA) is as follows:
WMA = (P1*W1 + P2*W2 + โฆ.+ Pn*Wn) / (W1+ W2+ โฆ..+ Wn)ย
Where:
- P1, P2, Pn = the most recent to oldest prices
- W1, W2, Wn = the weights assigned to each price, with the most recent being the highest weight.
The weighted moving average can be smoothed out further by adding more data points and assigning different weights to them. For example, instead of a simple 3-day moving average, you could use a 9-day weighted moving average where the most recent days have higher weights and the older ones have lower weights.
How to trade WMA
Traders often use WMAs to enter and exit trades. A buy signal is generated when the price crosses above the WMA, and a sell signal is generated when the price crosses below the WMA.
Traders may choose to assign higher weights to more recent prices and lower weights to older ones to better reflect significant short-term price movements. Additionally, some traders may opt for an exponential weighting scheme, in which each successive price is assigned a higher weight than the preceding one.
This emphasizes the most recent prices and gives them more influence over the outcome. Whatever approach is used, traders should always know how their chosen weights will affect their moving average calculations. Furthermore, choosing an appropriate range for the formula is also important, as the range should match the trader’s investing time horizon.
For instance, a long-term investor might use a 200-day moving average, while a short-term scalper may only look at prices over the last five days. Finally, some traders will choose to use multiple moving averages with different ranges to identify strong trends in the market.
Pros
The advantage of using a weighted moving average is that it gives more influence on recent prices. This can be beneficial in quickly identifying short-term price shifts, which traditional averages may have overlooked. Most charting softwareย packages already have the calculations built-in, so there’s no need for complicated formulas or manual calculations. The WMA also provides a clear visual representation of price trends, which can be easier to interpret than other types of technical analysis.
Cons
The main disadvantage of using WMA is that its performance is incredibly poor. Our research exposes the risks of using this indicator in trading strategies, especially during market consolidation.
One major drawback of using moving averages is that they tend to underperform during market or stock price consolidation periods, which can translate to negative returns.
However, one of the drawbacks of using the WMA is that it doesn’t consider short-term volatility. Prices can gyrate wildly in the short term, but a long-term average like the 200-day WMA might not capture these swings. Investors relying solely on a WMA may miss important short-term buying and selling opportunities. Additionally, the WMA is a lagging indicator, meaning it can only confirm trends after they’ve already started. This means investors must use other indicators in conjunction with a WMA if they hope to stay ahead of the markets.
Is WMA Indicator Accurate?
No, the weighted moving average indicator is inaccurate, averaging only a 7% win rate. The WMA causes many small losses when asset prices consolidate. Backtesting the WMA indicator on 30 Dow Jones Industrial Average stocks over eight years resulted in an average 7% win rate, meaning it underperformed a buy-and-hold strategy 93% of the time.
WMA Backtesting Methodology
To backtest the WMA indicator, I used TrendSpider, the leading AI stock trading software with pattern recognition and a codeless backtesting engine. Testing was configured using OHLC with an exit on the next open. The Heikin Ashi daily chart used the “next trading day HL2 ” exit criteria (Price High + Low /2).
WMA Testing Criteria | Daily OHLC Chart | Daily Heikin Ashi Chart |
Index: | DJIA | DJIA |
Date Range | 8 Years/2000 Candles | 8 Years/2000 Candles |
Settings: | 20, 50, 100, 200 | 20, 50, 100, 200 |
Entry Criteria: | Price > WMA 20 | Price > WMA 20 |
Exit Criteria: | Price < WMA 20 | Price < WMA 20 |
Sell: | Next Open | High+Low/2 |
I test all indicators, including the WMA, on their standard recommended settings, on different timeframes, and using different chart types; this provides an unbiased result. Also, the entry and exit prices use an average of the high and low prices for the day, making the testing more realistic.
How I Set Up WMA Backtesting in TrendSpider
To set up backtesting in TrendSpider, follow these steps. Register for TrendSpider, select Strategy Tester > Entry Condition > Add Script > Add Parameter > Condition > Price > Greater Than > WMA. For the Sell Criteria, select > Add Script > Add Parameter > Condition > Price > Less Than > WMA. Finally, click “RUN.”
To set up backtesting, I used TrendSpider, our recommended trading software for serious traders. The screenshot below shows the exact configuration for our WMA backtesting.
Testing WMA on OHLC Charts
This is a typical example of a 20-day WMA on an OHLC chart. Over 8 years, a trader using the 50-day weighted moving average on Apple Inc. (Ticker: AAPL) would make 300%, but a buy-and-hold investor would have made 456%. The average results for the weighted moving average on OHLC charts mean it is a poor choice for trading on candlestick charts.
Testing Performed With TrendSpider – The Best Software for Traders
Testing the standard WMA settings on a daily candlestick/OHLC chart proves this indicator is poor, with a 12% chance of outperforming a buy-and-hold strategy on all tested timeframes.
Results for Daily OHLC Charts
Testing 960 years of data shows the average win rate for weighted moving averages is 7%. The table below shows that the WMA 100 has a 10% chance of beating a buy-and-hold strategy, and the 200-day WMA only has a 7% chance of success.
WMA 8-Year Backtest OHLC Chart | % Win Rate | # Trades |
Timeframe: | Daily | Daily |
20-Day WMA | 7% | 172 |
50-Day WMA | 3% | 122 |
100-Day WMA | 10% | 75 |
200-Day WMA | 7% | 35 |
Average | 7% |
I tried many backtesting solutions, but this testing was only possible using TrendSpider.
Powerful Point & Click Backtesting With TrendSpider
Testing WMA on Heikin Ashi Charts
The weighted moving average performs considerably better on a Heikin Ashi chart. If a trader used the 20-day weighted moving average on Apple Inc. (Ticker. AAPL) over 8 years, they would have made an 837% profit beating a buy-and-hold strategy profit of 455%.
The table below shows that even using the advantages of Heikin Ashi charting, the weighted moving average indicator should be avoided except for the WMA 20, which has a good record of profitability.
Results for Heikin Ashi Charts
Testing 960 years of data shows the average win rate for weighted moving averages on a Heikin Ashi chart is 43%. This means 57% of stocks traded using this strategy will fail to beat a buy-and-hold strategy. The 20-period WMA performed better than all other moving averages we tested, with an 83% success rate.
8-Year Backtest Heikin Ashi Chart | % Win Rate | # Trades |
Timeframe: | Daily | Daily |
20-Day WMA | 83% | 149 |
50-Day WMA | 50% | 71 |
100-Day WMA | 23% | 57 |
200-Day WMA | 13% | 35 |
Average | 43% |
Powerful Point & Click Backtesting With TrendSpider
Why are Heikin Ashi’s WMA results better?
Why do Heikin Ashi charts perform slightly better with WMA and other indicators like Keltner Channels and Price Rate of Change? I believe it is due to the price averaging, which removes the extreme price highs and lows associated with traditional OHLC bars. This means fewer trades in consolidating markets and fewer small losses.
Professional traders may assume, as I did, that the Heikin Ashi chart distorts the pricing because it averages the OHLC of the candles. But we can achieve realistic entry and exit criteria by using TrendSpider’s HL2 setting, meaning the average of the price candle high and low. I proof-checked individual trades, which were reasonable but not entirely realistic.
Combining WMA with Other Indicators
Incorporating the WMA with additional chart indicators, such as Price Rate of Change or bullish chart patterns, is optimal. The WMA excels in markets trending either up or down. However, it provides multiple false buy and sell signals during consolidation, leading to many minor trading losses. Therefore, avoid using this indicator in consolidating markets.
Should the WMA be used for buy and sell signals?
Our research backtesting shows that the 20-period WMA on a Heikin Ashi chart is a good indicator for identifying buy and sell signals. Over 960 years of data across 30 Dow Jones stocks, the 20, 50, 100, and 200-period WMA on candlestick charts lost to a buy-and-hold strategy 93% of the time. This is a very poor indicator by a significant margin.
The Best WMA Settings
Our research shows the best setting for the WMA indicator is 20 days on a Heikin Ashi chart. This is the only setting outperforming a buy-and-hold strategy with an 83% win rate. All other settings on OHLC charts and timeframe produce losses and a failure rate of 93%.
Although WMA isn’t the most reliable indicator, the optimal solution is to choose the least bad option. If it is necessary to use this indicator, it is recommended to set it according to period 20 and utilize a daily Heikin Ashi chart.
For this indicator to be most effective, it’s best to use it when the asset moves in strong trends. Many small losses will likely be incurred whenever the asset goes through a period of price consolidation.
Limitations of Using Weighted Moving Averages
The biggest limitation of weighted moving averages is they produce 77% of their losses in consolidating markets. Markets only have two phases: trending and consolidation. Moving averages should not be used when an asset’s price is consolidating.
Summary
After testing for 960 years, it’s safe to say that using weighted moving averages as trading indicators for buying and selling is a losing strategy. Avoid it. You only have a 7% chance of outperforming a buy-and-hold strategy.
You may also be interested in the incredible alligator indicator based on moving averages; with the optimal settings, it has proven highly profitable.
FAQ
Is the weighted moving average a good indicator?
No, our research shows that weighted moving averages are not good indicators on any timeframes. We tested the 20, 50, 100, and 200-day moving averages, and all results were less than a 10% win rate.
What are better indicators than weighted moving averages?
There are many better indicators than weighted moving averages, such as the rate of change and chart patterns. Our testing has proven these indicators to be much more effective, work on many timeframes, and are more successful in trading strategies.
Is a weighted moving average the best indicator?
No, the weighted moving average is not the best indicator; it is one of the worst indicators in technical analysis. It generated 58 percent losing trades when trading the DJ Industrial Average. For trading success, learn how to backtest and tune trading strategies with TrendSpider.
What is the best time frame for weighted moving averages?
The best timeframe for a weighted moving average strategy is a daily Heikin Ashi chart with a period of 20, which yields an 83 percent win rate, according to TrendSpider. We conducted time-based research and found that WMAs underperformed the market on all timeframes on all candlestick charts.
How reliable is a weighted moving average?
Weighted moving averages are an incredibly unreliable technical analysis chart indicator. Our 960 years of backtested data on 30 major US stocks show a 7% chance of beating a buy-and-hold strategy on a daily OHLC chart. Results were better using a Heikin Ashi chart, as the 20-period WMA has an 83% reliability.
What is the best software for trading and testing weighted moving averages?
After carrying out a thorough analysis of moving average trading, we utilized TrendSpider, a premier trading tool for backtesting and strategy development. As a professional, in my opinion, it proved invaluable.
Which is better, an weighted or simple moving average?
Based on 1,820 years of backtesting data on 30 stocks, our research indicates that the Simple Moving Average (SMA) outperforms the Weighted Moving Average (WMA) with a 12% win rate as compared to the WMA's 7%. Both indicators have poor success rates and are not recommended for traders.
How to read a weighted moving average chart?
To read a weighted moving average chart, note a price above the moving average line signals an uptrend; below the line could indicate a downtrend. Only use moving averages when the asset is in a strong trend to avoid small losses.
What is the best software for trading weighted moving average indicators?
TrendSpider is hands-down the top software for trading moving average indicators, with 15 indicators and integrated point-and-click backtesting; you can see why it's a game-changer! TradingView is also good, offering 10 moving average indicators and a global community of traders to learn from.
Is the weighted moving average the same as a moving average?
No, a weighted moving average is not the same as a moving average. There are four main moving averages; simple, exponential, weighted, and Hull moving averages. The weighted moving average is a subset of the moving average indicators with a different calculation.
Do weighted moving averages really work?
No, according to our testing, weighted moving averages work out very poorly for anyone trading them on a daily or even intraday 5-minute chart. Using WMA on a daily OHLC or Candlestick chart is a poor predictor of price trends and direction reversals, losing out to a buy-and-hold strategy 93% of the time.
How accurate is a weighted moving average?
The weighted moving average indicator is highly inaccurate, especially with a standard OHLC, line, or candlestick chart. Our research indicates that a WMA has a 7 to 10 percent win rate. Although moving averages and MACD are marketed as good strategies, the rate of change indicator is more effective at 66 percent.
How to make money trading weighted moving averages?
Our research demonstrates that making money using weighted moving averages is unlikely because this indicator generates many losses during market consolidations. The simple moving average win rate is 12%, while the weighted moving average is only 7%.
How to use weighted moving averages with Crypto or Forex?
You can use WMAs with cryptocurrency or Forex trading, but our tests show the results are poor, with only a maximum success rate of 10% on a 100-period setting. Whether you choose stocks, crypto, or forex for trading, you must avoid the WMA strategy.
What is a period in a weighted moving average?
The period in a weighted moving average (WMA) is the number of data points used to calculate the WMA. If you use a 20-day WMA, you will be averaging out the last 20 days of price action. A longer period, such as a 200-day WMA, will calculate 200 periods on a daily chart.
Are daily and weighted moving averages the same?
No, daily and weighted moving averages are not the same. A weighted moving average uses a chart timeframe in its calculation. If the chart is a daily chart, then the WMA-5 uses five periods of one day. But if you use a 5-minute chart, the WMA-10 calculates ten 5-minute periods.
Do traders use simple or weighted moving averages?
Beginner traders will use simple or weighted moving averages. But experienced traders who have performed their backtesting will avoid using these moving averages due to their poor performance in consolidating markets and low win rates of only 7%.
How to calculate a 10-month weighted moving average?
To calculate a 10-month WMA, set your chart to monthly and select your weighted moving average to be 10. Alternatively, on a daily chart, set the weighted moving average period to 200. There are approximately 20 trading days per month, multiplied by 10 months.
What is the best setting for a weighted moving average?
Our testing shows that the best setting for weighted moving averages is a 20-period on a Heikin Ashi chart, which yields an 83% win rate. A Hull moving average on OHLC or candlestick charts is not recommended as the best setting of 100-period has only a 10% success rate.