Lipi Reference Lipi

Functions

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.

Syntax

                talib.vwma(series float source, series int length) → series float
              

Arguments

source required series float The series to average.
length required series int How many bars the average covers.

Return Type

series float

Example


          indicator("VWMA Indicator", overlay=true)
length = input(20, "VWMA Length")
vwmaValue = talib.vwma(close, length)
plot(vwmaValue, color=color.blue, title="VWMA")