415 B
415 B
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)