Functions
talib.range()
How much ground `source` covered over the last `length` bars, expressed as one figure. Any series is accepted, so the window need not be a price window.
Syntax
talib.range(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("Range Over Period", overlay=false)
length = input(20, "Lookback Period")
rangeOverPeriod = talib.range(close, length)
plot(rangeOverPeriod, style=plotStyle.bar, color=color.blue, title="Range Over Period")