ta.stdev
Standard deviation over length bars. biased = true divides by length (population), false by length - 1.
ta.stdev(source: float, length: simple int, biased: bool = true) -> series float
Parameters
sourcefloat: The values to use, usually close or another price; a series that may change on every bar.lengthsimple int: Number of bars, a whole number from 1 to 5000 (a fraction is cut off). Known before the first bar: a literal or an input, never a series. Outside 1 to 5000 the script stops with a runtime error.biasedbool: true (default) divides by length (the population), false by length - 1 (a sample).
Example
ta.stdev(close, 20)