Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.ta.pivothigh
On this pageSignatureParametersReturnsExample

Market structure / Reference

alerta.ta.pivothigh

TradingView-compatible spelling: ta.pivothigh, runs without warnings

Returns price if it's a pivot high, else null. Confirmed rightLen bars ago.

alerta.ta.pivothigh(source, leftLen, rightLen) → series float

Parameters

NameTypeRequiredDefaultDescription
sourceseriesYes—Input series.
leftLenintYes—Bars to the left.
rightLenintYes—Bars to the right.

Returns

series float

Example

alerta.ta.pivothigh
const ph = pivothigh(high, 10, 10)if (ph) { plotShape(ph, { style: "label_down" }) }

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.