Functions
talib.pivothigh()
This function returns price of the pivot high point. It returns 'NaN', if there was no pivot high point.
Syntax
talib.pivothigh(series float source, series int leftBars, series int rightBars) → series float
Arguments
source series float An optional parameter. Data series to calculate the value. leftBars required series int Left strength. rightBars required series int Right strength. Return Type
series float Example
indicator("Pivot Highs", overlay=true)
leftBars = input(5, "Left Bars")
rightBars = input(5, "Right Bars")
pivotHigh = talib.pivothigh(high, leftBars, rightBars)
plot(pivotHigh, style=plotStyle.scatter, color=color.red, title="Pivot Highs", offset=-rightBars)