Functions
array.stdev()
Returns the standard deviation of the array's elements. `biased` chooses the estimate: true (the default) divides by the number of elements, false by one less.
Syntax
array.stdev(series array id, series bool biased) → series float
Arguments
id required series array biased series bool Return Type
series float Example
//@lipi=2
indicator("array.stdev Example", overlay=false)
static array<float> closes = array.new_float(20, close)
array.shift(closes)
array.push(closes, close)
plot(array.stdev(closes), title="20-Bar Standard Deviation", color=color.blue)