ta.pivotlow()Pivot Low
Returns the price of a pivot low point. It returns NaN if there was no pivot low point.
Syntax
ta.pivotlow(source, leftbars, rightbars) → series floatArguments
| Parameter | Type | Description |
|---|---|---|
| source | series int/float | Series used to detect the pivot (often low). |
| leftbars | series int/float | Left-side pivot strength: number of bars evaluated before the candidate. |
| rightbars | series int/float | Right-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
//@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
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.
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.lowest() - Lowest Value
Learn how to use ta.lowest() in Pine Script. Find the lowest value over a lookback period.
ta.lowestbars() - Lowest Bars Offset
Learn how to use ta.lowestbars() in Pine Script. Find how many bars ago the lowest value occurred.
ta.pivot_point_levels() - Pivot Points
Learn how to use ta.pivot_point_levels() in Pine Script. Calculate traditional pivot point support and resistance levels.
ta.falling() - Falling
Learn how to use ta.falling() in Pine Script. Compare the current value with prior values in a lookback; consecutive decreases are not required.