series (series) – Input series
series
n (integer) – Number of bars to look behind into the history
integer
series[integer]
Returns the number of bars since the highest value within the last n bars in the series
Same as
bars_since_highest(high, n)
bars_since
bars_since_lowest