EVWMA

A moving average that moves more on candles with heavy volume.

Elastic volume-weighted moving average: with N = Σ volume over the last period candles, evwma = prev × (N − volume) ÷ N + volume × x ÷ N. Seeded with the VWMA of the first full window. A candle whose window volume is 0 is not ready and leaves the average unchanged.

Settings

SettingDefaultRangeWhat it does
period201 to 1000Candles whose volume forms N.

What it gives

OutputWhat it is
evwmaThe average, in price.

What it reads

It reads open, high, low, close, hl2, hlc3, ohlc4, hlcc4, close by default.

Warm-up

With its default settings, EVWMA needs 200 closed candles before its first value. A backtest loads them before its start date, so the first trade can already use it.

Test it

Copy this sentence into the Algonney chat to backtest it:

Backtest a strategy on BTC that uses EVWMA with its default settings