The Trading Mentorbrand_subtitle

Weighted Moving Average (WMA) Indicator: How It Works & Best Settings

WMA assigns linearly increasing weights to more recent prices, providing a balance between SMA and EMA responsiveness.

Daniel Harrington

Daniel Harrington

Senior Trading Analyst · MT5 Specialist

12 min read

Fact-checkedData-drivenUpdated March 7, 2026

SettingsWMA

Categorytrend
Default Period20
Best TimeframesM15, H1, H4
EUR/USDH4
0.40%WMA (20)
1.08721.10841.12971.15091.13661.1193
EUR/USD H4 — WMA (20) • Simulated data for illustration purposes
In-Depth Analysis

Quick question: if you had to pick a moving average for a job interview, which one would you bring? The SMA shows up in a suit, reliable but slow. The EMA arrives caffeinated and twitchy, reacting to everything. And then there's the WMA — the one who actually read the job description, weighted the important parts, and gave a balanced answer. Yet somehow, almost nobody talks about it. The Weighted Moving Average sits in that awkward middle ground between the Simple Moving Average and the Exponential Moving Average, and that positioning is exactly what makes it useful. It reacts faster than the SMA without the nervous energy of the EMA. If you've been defaulting to one of the popular two without ever giving the WMA a fair shot, you might be leaving an edge on the table.

Key Takeaways

  • Every trader knows the SMA. Most have at least experimented with the EMA. But bring up the WMA at a trading forum and yo...
  • The math behind the WMA is surprisingly simple once you see it laid out. No exponential decay formulas, no smoothing con...
  • Scalping lives and dies on reaction time. You need an indicator that turns fast enough to catch the start of a move but ...
1

The Middle Child of Moving Averages

Every trader knows the SMA. Most have at least experimented with the EMA. But bring up the WMA at a trading forum and you'll get blank stares or, at best, a shrug. That's a shame, because the Weighted Moving Average occupies a genuinely useful niche that neither of its siblings can fill.

Let's set the stage. The Simple Moving Average treats every candle in its lookback period equally. The closing price from 20 bars ago has the exact same influence as today's close. That's democratic, sure, but markets aren't democracies — what happened five minutes ago matters more than what happened yesterday morning. The EMA fixes this by applying an exponential multiplier that decays older prices rapidly. The result is a line that hugs price action tightly, sometimes too tightly. In choppy conditions, the EMA whips back and forth like a weathervane in a storm.

The WMA takes a different approach entirely. It assigns a linear weight to each bar. In a 20-period WMA, today's candle gets a weight of 20, yesterday's gets 19, the day before gets 18, and so on down to 1 for the oldest bar. No exponential curves, no equal treatment — just a clean, straight-line priority system where recent prices matter most, but older prices still have a voice.

In practice, this means the WMA turns direction roughly 1 to 3 candles earlier than an SMA of the same period, but without the jittery oversensitivity you get from an EMA. Think of it as the Goldilocks zone of moving averages. On a 20-period setting applied to EUR/USD on the H1 chart, the WMA will hug price more closely than the SMA during trending moves while producing fewer false crossovers than the EMA during consolidation phases.

So why doesn't everyone use it? Partly habit, partly education. Most trading courses teach SMA first, then introduce EMA as the "advanced" version. The WMA gets maybe a footnote. Platforms like MetaTrader 5 support it natively — it's called LWMA (Linear Weighted Moving Average) in the indicator list — but most traders never scroll past EMA in the dropdown. That's an oversight worth correcting.

The honest comparison table looks like this: SMA is the calmest but slowest to react, EMA is the fastest but noisiest, and WMA lands squarely in between on both counts. If your strategy needs quick reaction without excessive whipsaw, the WMA deserves a spot on your chart.

2

How Weighting Works: Not All Candles Are Created Equal

The math behind the WMA is surprisingly simple once you see it laid out. No exponential decay formulas, no smoothing constants — just multiplication and addition.

Here's the core formula: WMA = (P1 x n + P2 x (n-1) + P3 x (n-2) + ... + Pn x 1) / (n + (n-1) + (n-2) + ... + 1), where P1 is the most recent closing price, Pn is the oldest, and n is the period length.

Let's walk through a real example with a 5-period WMA. Say the last five closing prices on GBP/USD M15 are 1.2650, 1.2645, 1.2660, 1.2640, and 1.2635, from newest to oldest.

Step one: multiply each price by its weight. The newest price (1.2650) gets multiplied by 5. The next one (1.2645) by 4. Then 1.2660 by 3, 1.2640 by 2, and 1.2635 by 1.

That gives you: 6.3250 + 5.0580 + 3.7980 + 2.5280 + 1.2635 = 18.9725.

Step two: divide by the sum of weights. For a 5-period WMA, that's 5 + 4 + 3 + 2 + 1 = 15.

WMA = 18.9725 / 15 = 1.26483.

Notice what happened there. The straight SMA of those five prices would be 1.2646. The WMA came out at 1.26483 — pulled slightly toward the most recent price of 1.2650. That tiny difference might seem insignificant on a single calculation, but compound it across dozens of bars in a trending market, and the WMA line visibly leads the SMA line.

The key insight is the weight distribution. In a 20-period WMA (the default we recommend), the most recent candle accounts for 20/210 of the total weight — roughly 9.5% of the calculation. The oldest candle contributes just 1/210, or about 0.48%. That means today's price has almost 20 times more influence than the price from 20 bars ago. Compare that to the SMA, where every bar contributes exactly 5% in a 20-period window.

This linear weighting scheme is what gives the WMA its characteristic behavior: it's responsive enough to catch trends early, but the gradual weight decline (rather than the sharp exponential drop-off in EMA) keeps the line smoother during noise. You could think of the EMA as a spotlight that focuses almost all attention on the last few bars, while the WMA is more like a gradient — bright at the front, dimming steadily toward the back, but never going completely dark.

One practical detail worth knowing: on MetaTrader 5, you won't find "WMA" in the moving average type dropdown. Look for "Linear Weighted" instead. Same calculation, different label. The default period of 20 is a solid starting point for most forex pairs on H1, though we'll dig into timeframe-specific adjustments later.

character peeking curiously

WMA giving recent candles the VIP treatment while older ones wait in the back.

Scalping lives and dies on reaction time.

3

WMA in Scalping: Why Speed Freaks Love It

Scalping lives and dies on reaction time. You need an indicator that turns fast enough to catch the start of a move but doesn't whip you into fake signals every thirty seconds. This is where the WMA earns its keep on the M15 and M5 charts.

The classic scalping setup with WMA uses two periods: a fast WMA (period 10) and a slow WMA (period 20). When the 10-period crosses above the 20-period, that's your potential long signal. When it crosses below, potential short. Simple enough — but the reason this works better with WMA than SMA on lower timeframes comes down to timing.

On a M15 EUR/USD chart during the London session, an SMA(10)/SMA(20) crossover typically fires 2 to 4 candles after the trend has already established itself. By the time you enter, you've missed the initial momentum. The same crossover using WMA(10)/WMA(20) fires earlier because both lines are biased toward recent price action. You get in closer to the actual turn.

But here's the trade-off you need to understand: that speed comes with more false crosses during consolidation. The WMA crossover system on M15 will generate roughly 15 to 25% more signals than the equivalent SMA system during a typical trading day. Not all of those extra signals are winners. The solution isn't to abandon the WMA — it's to add a filter.

The most effective filter for WMA scalping is a higher-timeframe trend confirmation. Before taking any WMA crossover on M15, check the H1 chart. If the H1 WMA(20) is sloping up, only take long crossovers on M15. If it's sloping down, only take shorts. This single rule can eliminate a significant portion of losing trades during choppy, directionless sessions.

Another scalping approach skips crossovers entirely and uses the WMA as dynamic support and resistance. During a clean uptrend on M15, price tends to pull back to the 20-period WMA and bounce. Scalpers can enter long on the touch with a tight stop-loss below the WMA line — typically 5 to 8 pips on major pairs. The target is usually the previous swing high or a 1:1.5 risk-reward ratio.

For M5 scalping, consider shortening the WMA to period 14 or even 10. The M5 timeframe generates significantly more noise, and a 20-period WMA can lag just enough to make entries feel late. A 10-period WMA on M5 during the New York open, combined with a quick visual check of the M15 trend direction, gives you a setup that balances speed with structure.

One thing to watch: avoid scalping WMA crossovers during the first 15 minutes after major economic news releases. The initial price spike will trigger a crossover, but the subsequent retracement often reverses it within minutes. Wait for the dust to settle, then look for the real move. Your patience account will thank you more than your trading account sometimes.

4

WMA + RSI: A Combo That Actually Works

If you've been around trading forums, you've seen a hundred indicator combinations that promise the world and deliver confusion. The WMA plus RSI pairing is different — not because it's magic, but because the two indicators measure fundamentally different things and complement each other's blind spots.

The WMA tells you about trend direction and price momentum through its slope and position relative to price. The RSI (Relative Strength Index) tells you about the internal strength of that momentum — whether buying or selling pressure is accelerating or exhausting. Together, they create a two-factor confirmation system that filters out a meaningful chunk of false signals.

Here's the specific setup that works well across H1 and H4 timeframes. Apply a 20-period WMA to price. Add a 14-period RSI in a separate window. The rules are straightforward.

For a long entry, you need three conditions. First, price must be above the 20-period WMA. Second, the WMA slope must be pointing upward — not flat, not curling over, but actively rising. Third, the RSI must pull back into the 40 to 50 zone and then start rising again. That RSI dip-and-recovery in a WMA uptrend is your trigger. It signals a temporary pause in buying pressure that's resolving back in the trend direction.

For a short entry, mirror the conditions. Price below a downward-sloping WMA, with RSI bouncing up into the 50 to 60 zone and then turning back down.

Why does this combination outperform using either indicator alone? The WMA confirms the trend exists and is active. The RSI confirms that the pullback is shallow — a normal breather, not a reversal. Without the WMA filter, the RSI would trigger entries in every direction during choppy markets. Without the RSI filter, the WMA would have you entering trends too early or too late, without a clear timing mechanism.

There's a more advanced version of this setup that applies a WMA directly to the RSI itself. Calculate a 14-period RSI, then overlay a 10-period WMA of the RSI values. When the RSI crosses above its own WMA, that signals building momentum. When it crosses below, fading momentum. Combining this RSI-WMA crossover with price position relative to the price-chart WMA gives you a dual-confirmation system that filters surprisingly well.

A practical example: EUR/USD on H1, early London session. Price has been trending above the WMA(20) for the past 12 candles. RSI(14) spiked to 68, then pulled back to 47 over three candles while price drifted sideways but stayed above the WMA. RSI then ticks up to 52. That's your entry. Stop-loss goes below the WMA line — if price breaks below it, the trend thesis is invalidated. Take-profit targets the next resistance level or a 1.5:1 reward-to-risk ratio.

The key discipline with this combo is patience. You'll see plenty of situations where only two of the three conditions are met. Maybe price is above the WMA and RSI is in the right zone, but the WMA slope is flat. Skip it. The power of this system comes from requiring all three confirmations. Relaxing the rules defeats the purpose.

smooth flowing motion

When WMA and RSI sync up perfectly, your entries become this smooth.

Time for the part most indicator guides skip: the honest conversation about whether this tool is actually worth adding to your toolkit.

5

Should You Even Use the WMA? An Honest Assessment

Time for the part most indicator guides skip: the honest conversation about whether this tool is actually worth adding to your toolkit. The WMA has genuine strengths, real weaknesses, and specific situations where you should ignore it entirely.

Let's start with the good. The WMA's linear weighting gives you a cleaner middle ground between SMA and EMA than any other standard moving average type. If you find the SMA too slow and the EMA too reactive, the WMA is genuinely the right tool. On trending instruments during active sessions — London and New York for forex — the WMA(20) provides reliable dynamic support and resistance that reacts fast enough to be useful for intraday entries.

The WMA also pairs well with other indicators, as we covered with the RSI combination. Its smooth-but-responsive character means it generates fewer conflicting signals when used alongside oscillators compared to the often-jittery EMA.

Now the bad. In sideways, range-bound markets, the WMA produces false signals just like every other moving average — and because it's more responsive than the SMA, it actually produces more false crosses during consolidation. If you're trading a pair that's been stuck in a 30-pip range for the past four hours, the WMA will whip back and forth across price, generating entry signals that go nowhere.

Backtesting data paints a sobering picture for any moving average used in isolation. Studies across decades of stock market data have shown that standalone moving average crossover systems — including WMA-based ones — frequently underperform a simple buy-and-hold approach. The WMA is not a strategy by itself. It's a component of a strategy.

The WMA also has a visibility problem. Because it's less popular than SMA and EMA, fewer institutional and algorithmic traders are watching WMA levels. In markets where self-fulfilling prophecy plays a role — price bouncing off the 200 SMA because everyone is watching the 200 SMA — the WMA doesn't benefit from the same crowd psychology. The 50 EMA on a daily chart is a level that thousands of traders have on their screens. The 50 WMA? Far fewer eyes.

So when should you skip the WMA entirely? Three scenarios. First, if you're trading daily or weekly charts for position trades, the SMA's stability and widespread adoption make it a better anchor. Second, if you're a pure scalper on M1, you probably need the EMA's maximum speed — the WMA's slight smoothing advantage doesn't justify the marginal lag on the fastest timeframes. Third, if your strategy relies on levels that other traders also watch, stick with SMA or EMA for the network effect.

When should you use it? The WMA shines on M15 to H4 timeframes, in trending conditions, as part of a multi-indicator system. It's the ideal trend filter when combined with an oscillator like the RSI. It works well for traders who find themselves getting whipsawed by EMA signals but feel the SMA is too slow to be actionable.

The bottom line: the WMA won't revolutionize your trading. No single indicator will. But if you're in that frustrated middle ground between SMA and EMA — and a lot of traders are, whether they realize it or not — the WMA might be the quiet upgrade you've been overlooking. Give it 20 trades on a demo account with the RSI combo we described, and judge the results for yourself.

Frequently Asked Questions

Q1What is the difference between WMA and LWMA in MetaTrader 5?

They are the same indicator. MetaTrader 5 labels the Weighted Moving Average as "Linear Weighted" (LWMA) in its moving average type dropdown. The calculation is identical — each bar receives a linearly decreasing weight, with the most recent bar getting the highest multiplier. When adding a Moving Average indicator in MT5, select "Linear Weighted" from the MA method options to apply a WMA to your chart.

Q2What is the best WMA period for day trading forex?

For H1 day trading on major forex pairs, the default 20-period WMA is a solid starting point. On faster M15 charts, consider shortening to 14 or 15 periods during volatile sessions like the London-New York overlap, and extending to 25 during quieter Asian hours. The 10-period and 20-period WMA crossover combination is commonly used for intraday signal generation, with the H1 WMA(20) slope acting as a directional filter.

Q3Is the WMA better than the EMA for trading?

Neither is universally better — they serve different strengths. The EMA reacts faster to price changes due to its exponential weighting, making it preferred for very fast scalping on M1 to M5. The WMA uses linear weighting, which produces a smoother line with fewer false signals during choppy conditions while still responding faster than the SMA. If you find EMA signals too noisy, the WMA offers a calmer alternative without going all the way back to SMA-level lag.

Q4Can I use the WMA for crypto and stock trading, or is it only for forex?

The WMA works on any instrument that produces OHLC price data — forex, stocks, indices, commodities, and crypto. The underlying math is asset-agnostic. However, you may need to adjust the period setting based on the instrument's volatility. Crypto markets, which trade 24/7 with higher volatility, often benefit from slightly longer WMA periods (25 to 30) to filter excess noise, while less volatile instruments like major stock indices may work well with the default 20.

Q5Why do most trading courses skip the WMA and only teach SMA and EMA?

Primarily because the SMA and EMA cover the two extremes — equal weighting and exponential weighting — which makes them easier to teach as contrasting concepts. The WMA occupies the middle ground, which is harder to position in a beginner curriculum. Additionally, the EMA became the default "advanced" moving average in popular trading literature decades ago, and educational content tends to follow established conventions. The WMA's lower popularity means fewer traders watch its levels, which reduces the self-fulfilling prophecy effect that makes SMA and EMA levels appear more significant on charts.

Daniel Harrington

About the Author

Daniel Harrington

Senior Trading Analyst

Daniel Harrington is a Senior Trading Analyst with a MScF (Master of Science in Finance) specializing in quantitative asset and risk management. With over 12 years of experience in forex and derivatives markets, he covers MT5 platform optimization, algorithmic trading strategies, and practical insights for retail traders.

Risk Disclaimer

Trading financial instruments carries significant risk and may not be suitable for all investors. Past performance does not guarantee future results. This content is for educational purposes only and should not be considered investment advice. Always conduct your own research before trading.