Core / Reference
alerta.highestindex
Returns the absolute index of the highest value of source for length bars.
alerta.highestindex(source, length) → series intParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
source | series | Yes | — | Series of values to process. |
length | int | Yes | — | Number of bars (length). |
Returns
series intExample
alerta.highestindex
const h_idx = highestindex(high, 20)Notes
- AlertaScript returns absolute bar_index, whereas Pine ta.highestbars returns offset.
Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.