hi frinds,
i have a problem about find hipivot candela befor my selected candel in pine script.
for example i need 2 information candel ,
first candel [5] and historical numbee of primary hipivot or lowpivot candels.
how can i find it with [] no bar_index
hipivot( leftbar , rightbar) and higestbars() cant solve my problem.
i try to solved it with while but dont work well.
thank u