What WMA means
WMA stands for Weighted Moving Average. It is a type of moving average, meaning it produces a single smoothed value by averaging a sequence of recent observations from a time series.
The key difference from a simple average is weighting: in a WMA, newer data points typically receive higher weights than older ones. This design is meant to make the average respond more quickly to recent changes, compared with equal-weight smoothing.
How WMA works in forex
In forex research, WMA is usually computed from a chosen price series (for example, a bar’s close). The indicator’s role is to transform raw price data into a smoother reference line. A smoother line can be easier to compare over time than noisy, high-variation price movements.
A common formulation uses a fixed lookback window of length N. For the most recent N data points, the WMA is calculated like this:
-
Let the series values be P₁, P₂, …, P_N, ordered from oldest (P₁) to newest (P_N).
-
Choose weights such as 1, 2, …, N (so the newest value gets weight N).
-
Compute:
WMA = (P₁·1 + P₂·2 + … + P_N·N) / (1 + 2 + … + N)
Because (1 + 2 + … + N) = N(N+1)/2, you can also write the denominator in closed form. This is a stable mathematical mechanism: once the weights and N are fixed, the WMA is fully determined by the input values.
Example calculation (with explicit assumptions)
Assume:
- Window length N = 3
- The values you average are closes for three consecutive periods: P₁ = 100, P₂ = 102, P₃ = 101
- Weights are 1, 2, 3 (newest gets the largest weight)
Then:
- Numerator = 100·1 + 102·2 + 101·3 = 100 + 204 + 303 = 607
- Denominator = 1 + 2 + 3 = 6
- WMA = 607 / 6 ≈ 101.17
This example shows the “weighted” part: although 101 is the newest value, the final average is pulled toward it more than the oldest value, but still influenced by the middle value.
How WMA differs from adjacent concepts
A moving average name change often reflects only one design choice: how weights are assigned.
- SMA (Simple Moving Average) uses equal weights for each point in the window. That means older and newer values contribute the same amount.
- WMA uses a weighting scheme (commonly increasing weights) so the newest values contribute more.
- EMA (Exponential Moving Average) uses weights that effectively decline exponentially over time, which means it can be computed recursively and typically emphasizes recent data differently than a fixed-window WMA.
Even if all of these produce a “smoothed line,” the smoothing behavior changes when the weighting rule changes. Those differences matter when interpreting the line relative to underlying price movement.
Limitations and failure modes
WMA is a deterministic calculation, but its usefulness depends on modeling choices and data conditions.
-
Lag still exists: smoothing cannot instantaneously mirror turning points. Any moving average, including WMA, can trail behind rapid changes because it aggregates past observations.
-
Choice of inputs changes the result: different definitions of the input series (close vs. typical price) and different window lengths N will change the WMA values. Without stating these assumptions, two people may compute different lines from “the same indicator.”
-
Edge effects: at the beginning of a time series, there may not be enough past data to fill the full window. Implementations often handle this with partial windows or by delaying output.
-
Market regime sensitivity: when volatility increases or price behavior shifts, the balance between noise reduction and responsiveness changes. A parameter that appears suitable in one period may not behave the same in another.
-
Historical relationships do not guarantee future behavior: even if a WMA line lined up with certain patterns in past data, that does not establish the same relationship going forward.
Verification and next question to check
To independently verify WMA facts, compute it directly from a small set of historical values using a stated window length N and weights (for example, 1…N). Then compare your manual results to what your chosen charting tool shows.
If you want to go further, a useful next question is how WMA behaves under different window lengths N, and how to test it in a way that accounts for changing market conditions and realistic costs.