SpecialPine Script v6

ta.pivot_point_levels()Pivot Point Levels

Returns a float array of pivot point levels, containing 11 elements for support, resistance, and pivot values.

Syntax

Syntax
ta.pivot_point_levels(type, anchor, developing) → float[]

Arguments

ParameterTypeDescription
typeseries stringPivot calculation type (e.g. classic variants per Pine docs).
anchorseries boolAnchor condition controlling when the pivot session resets.
developingseries boolIf true, calculates developing (partial) pivot points before the period completes.

Returns

A float array with numerical values representing 11 pivot point levels.

Remarks

Access elements with array index syntax; consult the Pine reference for the order of pivot, supports, and resistances.

Code Examples

Pine Script v6 Example
//@version=6
indicator("pivot_point_levels", overlay=true)
levels = ta.pivot_point_levels("Traditional", timeframe.change("D"), false)
pivot = array.get(levels, 0)
r1 = array.get(levels, 3)
plot(pivot, title="P")
plot(r1, title="R1")

Trading Applications

Calculate traditional pivot points automatically

Identify key support and resistance levels

Use for intraday trading level planning

Build pivot-based trading strategies

Related Functions

Frequently Asked Questions

It bundles standard pivot math into a fixed-size array so you can plot or trade against multiple derived levels without re-implementing the formulas.

TradingView documents allowed string identifiers for each model (Traditional, Fibonacci, etc.). Pass the exact type string from the reference for your Pine version.

Eleven numeric slots covering the central pivot and associated support/resistance rungs; index mapping is defined in the official documentation.

Generate ta.pivot_point_levels() Code with AI

Skip the manual coding. Use Pineify's AI Coding Agent to generate Pine Script code using ta.pivot_point_levels() and other built-in functions instantly.