Functions
talib.dev()
A deviation measure for `source` over `length` bars. It is not the same function as `talib.stdev`; the two are published separately and answer to different names.
Syntax
talib.dev(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 Example", overlay=false)
// Define input source and period
src = close
length = 20
// Compute standard deviation
std_dev = talib.dev(src, length)
// Plot the result
plot(std_dev, title="Standard Deviation", color=color.red)