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

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

NameTypeRequiredDefaultDescription
typeseries stringYes—"Traditional" | "Fibonacci" | "Woodie" | "Classic" | "DM" | "Camarilla".
anchorseries boolYes—Resets the accumulator when true (e.g. `timeframe.change("W")`).
developingseries boolNot 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.

AlertaScript

No results found.

Search by name, alias, or keyword.