Functions
talib.lowestbars()
Gives the position of the lowest value of `source` within the last `length` bars, not the value itself. Use `talib.lowest` when you want the value.
Syntax
talib.lowestbars(series float source, series int length) → series int
Arguments
source required series float The series to search. length required series int How many bars the search covers. Return Type
series int Example
indicator("Lowest Bars Ago", overlay=true)
length = input(20, "Lookback Period")
barsAgo = talib.lowestbars(low, length)
lowestLow = talib.lowest(low, length)
plotshape(barsAgo == 0, location=location.belowbar, color=color.red, shape=shape.labeldown, title="Lowest Low")
plot(lowestLow, color=color.blue, title="Lowest Low")