Files
2024-01-25 04:03:36 +03:30

415 B
Raw Permalink Blame History

VWMA

Volume-Weighted Moving Average (VWMA)

Calculation process

TradingView calculates the Volume-Weighted Moving Average with two Simple Moving Averages (SMAs) [1] . The first SMA multiplies each bar’s data with that bar’s volume. The second SMA is the volume average. Dividing those gives the VWMA.

pine_vwma(source, length) =>
    ta.sma(source * volume, length) / ta.sma(volume, length)