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

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.