ta.highestbars() - Pine Script Function
ta.highestbars()
Section titled “ta.highestbars()”Overview
Section titled “Overview”Highest value offset for a given number of bars back.
Syntax
Section titled “Syntax”ta.highestbars(source, length) → series intParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| source | series int/float | Series of values to process. |
Returns
Section titled “Returns”Offset to the highest bar.
Remarks
Section titled “Remarks”- Two args version: source is a series and length is the number of bars back.