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
ta.pivot_point_levels(type, anchor, developing) → float[]Arguments
| Parameter | Type | Description |
|---|---|---|
| type | series string | Pivot calculation type (e.g. classic variants per Pine docs). |
| anchor | series bool | Anchor condition controlling when the pivot session resets. |
| developing | series bool | If 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
//@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.
Related Pine Script Functions
ta.pivothigh() - Pivot High
Learn how to use ta.pivothigh() in Pine Script. Detect swing high pivot points for resistance levels.
ta.pivotlow() - Pivot Low
Learn how to use ta.pivotlow() in Pine Script. Detect swing low pivot points for support levels.
ta.highest() - Highest Value
Learn how to use ta.highest() in Pine Script. Find the highest value over a lookback period for Donchian Channels.
ta.lowest() - Lowest Value
Learn how to use ta.lowest() in Pine Script. Find the lowest value over a lookback period.
ta.sar() - Parabolic SAR
Learn how to use ta.sar() in Pine Script. Syntax, parameters, code examples for the Parabolic Stop and Reverse indicator.