Functions
talib.highest()
Highest value for a given number of bars back.
Syntax
talib.highest(series float source, series int length) → series float
Arguments
source required series float Series of values to process. length required series int Number of bars (length). 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)