Functions
talib.stdev()
Standard deviation of `source` over `length` bars. Unlike `talib.variance`, this signature carries no `biased` flag: there is one form of the calculation and no switch.
Syntax
talib.stdev(series float source, series int length) → series float
Arguments
source required series float The series to measure. length required series int How many bars the window covers. Return Type
series float Example
indicator("Standard Deviation (StDev)", overlay=false)
length = input(20, "StDev Length")
stdevValue = talib.stdev(close, length)
plot(stdevValue, color=color.blue, title="Standard Deviation")