Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.highestindex
On this pageSignatureParametersReturnsExampleNotes

Core / Reference

alerta.highestindex

Returns the absolute index of the highest value of source for length bars.

alerta.highestindex(source, length) → series int

Parameters

NameTypeRequiredDefaultDescription
sourceseriesYes—Series of values to process.
lengthintYes—Number of bars (length).

Returns

series int

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.