Functions
talib.wma()
Weighted moving average of `source` over `length` bars. For an average weighted by volume, use `talib.vwma` instead.
Syntax
talib.wma(series float source, series int length) → series float
Arguments
source required series float Series of values to process. length required series int Number of bars (length). Return Type
series float Example
//@lipi=2
indicator("Weighted Moving Average (WMA)", overlay=true)
length = input(20, "WMA Length")
wmaValue = talib.wma(close, length)
plot(wmaValue, color=color.blue, title="WMA")