Lipi Reference
Lipi

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 Series of values to process.
length required series int Number of bars (length).

Return Type

series float

Example


          //@lipi=2
indicator("Standard Deviation (StDev)", overlay=false)
length = input(20, "StDev Length")
stdevValue = talib.stdev(close, length)
plot(stdevValue, color=color.blue, title="Standard Deviation")