Skip to content
Algo Trade Analytics Docs

ta.pivotlow() - Pine Script Function

This function returns price of the pivot low point. It returns ‘NaN’, if there was no pivot low point.

ta.pivotlow(leftbars, rightbars) → series float
NameTypeDescription
leftbarsseries int/floatLeft strength.

Price of the point or ‘NaN’.

  • If parameters ‘leftbars’ or ‘rightbars’ are series you should use max_bars_back function for the ‘source’ variable.
//@version=6
indicator("PivotLow", overlay=true)
leftBars = input(2)rightBars=input(2)pl = ta.pivotlow(close, leftBars, rightBars)
plot(pl, style=plot.style_cross, linewidth=3, color= color.blue, offset=-rightBars)