Range & PivotPine Script v6

ta.pivotlow()Pivot Low

Returns the price of a pivot low point. It returns NaN if there was no pivot low point.

Syntax

Syntax
ta.pivotlow(source, leftbars, rightbars) → series float

Arguments

ParameterTypeDescription
sourceseries int/floatSeries used to detect the pivot (often low).
leftbarsseries int/floatBars to the left that must be higher.
rightbarsseries int/floatBars to the right that must be higher.

Returns

Price of the point or NaN.

Remarks

A pivot is confirmed only after rightbars complete; most bars return na until the pattern validates.

Code Examples

Pine Script v6 Example
//@version=6
indicator("pivotlow", overlay=true)
plot(ta.pivotlow(low, 5, 5), style=plot.style_circles, offset=-5)

Trading Applications

Identify swing low points for support levels

Build support detection systems

Create trendline drawing from swing lows

Use for double bottom pattern recognition

Related Functions

Frequently Asked Questions

It marks a bar whose source value is strictly lower than neighbors within leftbars and rightbars, returning that pivot low when the pattern is confirmed.

They define the symmetry of the swing: more bars require a deeper, clearer trough before a pivot registers.

Collect confirmed pivotlow values and extend them forward as horizontal support, or feed them into trendline or pattern logic.

Generate ta.pivotlow() Code with AI

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