Definition: what “WMA” means in forex
WMA usually stands for Weighted Moving Average. In forex, it is a calculated line that summarizes how a chosen price series has moved over a recent period by averaging it with different weights for different time points.
A “moving average” is defined by two parts:
- A lookback window (length): how many recent data points you include.
- A weighting rule: how much influence each point has.
WMA is one common weighting rule: newer observations typically receive higher weight than older ones, so the average reacts more to recent changes than a simple moving average (SMA).
The simple model: inputs, weighting, and output
To understand WMA in a self-checkable way, start with the basic notation.
Inputs you must decide
- Input price series: for example, closing prices. (You can apply WMA to any numeric series you track, but the choice must stay consistent.)
- Window length (L): the number of past observations used in each WMA value.
- Bar indexing: decide which data point is “most recent” within the window.
The weighting rule
A common WMA weighting scheme uses linearly increasing weights across the window:
- The most recent value gets weight L
- The oldest value gets weight 1
These weights are then normalized (divided by the total of all weights) so the result is still an average.
Output
For each time step where enough data exists (at least L points), WMA outputs one number—the weighted average for that time.
Mechanism in sequence: how you calculate each WMA value
Below is the calculation sequence for a single WMA point at time t.
- Collect the last L observations of your chosen series: from time t−(L−1) up to time t.
- Assign weights from oldest to newest: 1, 2, …, L.
- Multiply each observation by its weight.
- Sum the weighted observations.
- Divide by the sum of weights. With weights 1..L, the sum is:
- 1 + 2 + … + L = L(L+1)/2
- The resulting number is WMA(t).
A key point: the WMA is not an extra indicator that “detects” something by itself. It is a transformation of the same numeric input series into a smoothed version where recent data has more influence.
Evidence or example: a worked calculation (with stated assumptions)
Assume:
- Input series = closing prices
- Lookback length L = 4
- The last four closes ending at time t are:
- at t−3: 100
- at t−2: 102
- at t−1: 101
- at t: 103
Weights (oldest→newest) are 1, 2, 3, 4.
- Weighted values:
- 100×1 = 100
- 102×2 = 204
- 101×3 = 303
- 103×4 = 412
- Sum = 100 + 204 + 303 + 412 = 1019
- Divide by sum of weights = 4×5/2 = 10
- WMA(t) = 1019 / 10 = 101.9
This is independently verifiable: if you replicate the same input values and L, you must get the same numeric output.
Interpretation: what WMA can and cannot say
Common ways people interpret the WMA line include:
- Smoothing: reducing noise by emphasizing more recent points.
- Relative position: comparing price to its WMA value at a given time step.
However, these interpretations are descriptive, not predictive. A smoother line does not guarantee that future movement will follow any pattern. The WMA output is a consequence of past data and the chosen computation rules.
Material limitations and failure modes
WMA has practical limitations that can change how the line behaves.
-
Parameter sensitivity (window length)
- A shorter L reacts faster but can be more sensitive to short-term fluctuations.
- A longer L smooths more but can lag behind rapid changes.
-
Input-series ambiguity
- If one system uses closes, another uses typical price, and another uses opens, the resulting WMA values differ.
- Even small convention changes can alter the line.
-
Data and calculation conventions
- Time alignment matters: using different time zones, candle definitions, or missing data can shift results.
- Some implementations may handle incomplete windows differently; you should verify what happens before L points exist.
-
Regime changes and non-stationarity
- Financial series can change character over time (volatility, trend strength, and structural breaks).
- A method that “fits” a past segment may behave differently in another segment.
-
Costs and execution reality (if you try to use it for decisions)
- Even when WMA is computed correctly, real-world outcomes can be influenced by spreads, commissions, and execution quality.
- These factors are outside the WMA formula itself.
Verification: what to check independently
To verify you understand WMA well enough to explain it, check these items:
- Your weighting rule: confirm how weights increase and how they are normalized.
- Your window length definition: ensure L means the same number of points in your calculation.
- Your input series: confirm which price field (e.g., close) feeds the calculation.
- Edge behavior: verify how WMA values are produced before the first full window exists.
- Reproducibility: compute one WMA point by hand from the same data and confirm it matches your tool’s output.
A next question you can ask
If you want to go deeper, the most useful follow-up is: Which WMA variant and input convention does your specific platform use (for example, the exact weighting scheme and which price it feeds). Different conventions can produce materially different lines even when both are called “WMA.”