talib.vwma

Volume-weighted moving average of source over length bars: bars that traded more count for more. Volume is not an argument, so you pass only the series and the window.

talib.vwma(series float source, series int length) → series float
ParameterTypeRequiredDescription
sourceseries floatyesThe series to average.
lengthseries intyesHow many bars the average covers.

Returns series float — A series float: one average per bar.

indicator("Volume-weighted moving average")
plot(talib.vwma(close, 20))

See also talib.alma · talib.atr · talib.barssince

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade