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.

TradingView language reference

Syntax

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

Arguments

ParameterTypeDescription
sourceseries int/floatSeries used to detect the pivot (often low).
leftbarsseries int/floatLeft-side pivot strength: number of bars evaluated before the candidate.
rightbarsseries int/floatRight-side pivot strength: subsequent bars required for detection.

Returns

Price of the point or NaN.

Remarks

A value is reported rightbars bars after the candidate. The example plots it five bars back for visual alignment, which does not make the value available at that earlier time. A result can change while its detection bar remains open.

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 detects a local low using the specified left and right strengths and returns the candidate value on the later detection bar. The two-argument overload uses low as source.

They control the bars evaluated before and after a candidate and can be different. More right-side bars delay detection; they do not require a fixed price depth or guarantee stronger support.

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

Draft Pine Script using ta.pivotlow() with Pineify's AI Coding Agent, then review the arguments and test the result on your chart. Usage depends on your plan and available credits.