INDICATORS · WEIGHTED MOVING AVERAGE

Weighted Moving Average in Crypto: Why the Value Changes Before Candle Close

A linearly weighted moving average gives the newest bar weight N out of N(N+1)/2. That equals 2/(N+1) — the same live-bar weight as an EMA of the same length.

Short answer

WMA(N) = Σ(weight × close) ÷ Σ weights, with weights N for the newest bar down to 1 for the oldest. The live bar's weight is N ÷ (N(N+1)/2) = 2/(N+1): for N = 20, ≈ 0.095, identical to a 20-EMA's α. So inside the live bar, WMA and EMA move by about the same amount; they differ in how older bars are weighted. Crosses with price behave like EMA crosses intrabar.

Which part of WMA uses the live bar

ComponentUses current bar?Effect intrabar
Newest bar weightYes2/(N+1)
Older barsNoLinearly declining
WMAYes≈ EMA intrabar move

Worked: N = 20 → weights sum to 210; newest weight 20/210 ≈ 0.095. A $500 swing moves the WMA about $48.

Review Weighted Moving Average in Crypto with bar replay before using it live.

Open ChartsPod replay

How much it moves inside one bar

WMA during one bar (illustrative)WMA during one bar (illustrative): OPEN: WMA 59,960; MID: −$500: ≈ 59,912; LATE: +$300; CLOSE: ≈ 59,975.OPENWMA 59,960MID−$500: ≈ 59,912LATE+$300CLOSE≈ 59,975
Only WMA's closing value is kept in history. Original ChartsPod editorial graphic.
Illustrative intrabar range of WMA vs its closed valueIllustrative intrabar range of WMA vs its closed value: 20-WMA live weight 0 ; 20-SMA live weight 0 .ILLUSTRATIVE INTRABAR RANGE OF WMA VS ITS CLOSED VALUE20-WMA live weight020-SMA live weight0
How far WMA travels inside a bar versus between bars. Original ChartsPod editorial graphic.

Rules

WMA signal hygieneWMA signal hygiene: Signals on closed bars; Bar-close alerts; Backtest uses the same rule; Live value labelled provisional; Settings identical across chart and alerts.WMA SIGNAL HYGIENESignals on closed barsBar-close alertsBacktest uses the same ruleLive value labelled provisionalSettings identical across chart and alerts
Closed values are what history shows. Original ChartsPod editorial graphic.

Related: EMA in Crypto: Why the Value Changes Before Candle Close (EMA), SMA in Crypto: Why the Value Changes Before Candle Close (SMA).

Put Weighted Moving Average in Crypto next to price, flow and positioning in one workspace.

Open a ChartsPod workspace

Questions readers ask

How much weight does a WMA give the live bar?

2/(N+1), like an EMA.

How does it differ from an EMA?

In how older bars are weighted.

Closed bars?

Yes, for crosses.

Sources and methodology

Indicator formulas are standard definitions; live-versus-closed behaviour follows TradingView's repainting documentation. Values in examples are illustrative.

  1. TradingView Pine Script: Repainting — live vs historical calculation.
  2. ChartsPod indicator reference — indicator calculations.

This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.

CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.