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

Or browse all 158 indicators in the full library.

Build a bot that trades on WMA — the first backtest is free.

Run a free backtest