Functions
talib.highest()
The highest value `source` reached in the last `length` bars. Any series can be passed, so this is not limited to the bar's high.
Syntax
talib.highest(series float source, series int length) → series float
Arguments
source required series float The series to search. length required series int How many bars the search covers. Return Type
series float Example
indicator("Highest Example", overlay=true)
// Define input source and period
src = high
length = 10
// Compute highest value
highest_value = talib.highest(src, length)
// Plot the highest value as a horizontal line
plot(highest_value, title="Highest 10 Bars", color=color.green)