Functions
talib.swma()
Symmetrically weighted moving average of `source`. There is no `length` argument: the window is fixed by the function, and you choose only what to feed it.
Syntax
talib.swma(series float source) → series float
Arguments
source required series float The series to average. Return Type
series float Example
indicator("Symmetric Weighted Moving Average (SWMA)", overlay=true)
length = input(10, "SWMA Length")
swmaValue = talib.swma(close)
plot(swmaValue, color=color.blue, title="SWMA")