I want to know whether the current bar_index has the pivothigh or not? In pine script, when each bar is being executed or processed individually, I wanted to find if that particular bar is pivothigh or not
leftBars = input(2)
rightBars=input(2)
ph = ta.pivothigh(leftBars, rightBars)
with pivotcode() function, I can only get to know the pivothigh when the current bar_index is 2 bars after pivothigh bar
