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 The series to average. length required series int How many bars the average covers. Return Type
series float Example
indicator("Weighted Moving Average (WMA)", overlay=true)
length = input(20, "WMA Length")
wmaValue = ta.wma(close, length)
plot(wmaValue, color=color.blue, title="WMA")