TREND, MOVING AVERAGES & STRUCTURE
WMA
A moving average that gives newer candles a bigger say in a straight line — heavier than a simple average, lighter than an exponential one.
spec id: wmalength (default 20)
What does WMA measure?
A moving average that gives newer candles a bigger say in a straight line — heavier than a simple average, lighter than an exponential one.
How is WMA calculated?
Average the last 20 closes with weights that count up 1, 2, 3 and so on, so the newest candle carries the biggest weight and the oldest the smallest.
Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.
How do I use WMA in a bot?
In the builder, add an indicator of type wma (parameters: length, default 20). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.
Related indicators
- Woodie pivotsA pivot variant that leans on yesterday's CLOSE more than the classic set does — which shifts the levels when yesterday closed near an extreme.
- Zero-lag EMAAn exponential average with the delay largely engineered out — it turns roughly when price does rather than a few candles later.
- Zero-lag LSMAA regression moving average with its remaining lag removed.
- ADXA 0-100 meter for how STRONG a trend is — not which way it points.
Or browse all 158 indicators in the full library.