Skip to content
Algo Trade Analytics Docs

ta.highestbars() - Pine Script Function

Highest value offset for a given number of bars back.

ta.highestbars(source, length) → series int
NameTypeDescription
sourceseries int/floatSeries of values to process.

Offset to the highest bar.

  • Two args version: source is a series and length is the number of bars back.