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 floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
source | series | Yes | — | Input series. |
leftLen | int | Yes | — | Bars to the left. |
rightLen | int | Yes | — | Bars to the right. |
Returns
series floatExample
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.