Market structure / Reference
alerta.ta.pivot_point_levels
TradingView-compatible spelling: ta.pivot_point_levels, runs without warnings
Pine v6: computes pivot levels (P, R1-R5, S1-S5) using one of six methods, anchored to a user-defined period.
alerta.ta.pivot_point_levels(type, anchor, developing?) → array<float>Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
type | series string | Yes | — | "Traditional" | "Fibonacci" | "Woodie" | "Classic" | "DM" | "Camarilla". |
anchor | series bool | Yes | — | Resets the accumulator when true (e.g. `timeframe.change("W")`). |
developing | series bool | Not specified | — | When true, the pivot is recomputed live within the current anchor period. Default false. NOTE: developing=true is illegal with type="Woodie". |
Returns
array<float>Example
alerta.ta.pivot_point_levels
//@version=6indicator("Weekly Pivots", overlay=true)weekChange = timeframe.change("W")levels = ta.pivot_point_levels("Traditional", weekChange)if weekChange for lvl in levels line.new(time, lvl, time + timeframe.in_seconds("W") * 1000, lvl, xloc=xloc.bar_time)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.