How can I find the first pivot on a chart? The code below nicely finds past pivots using the pivot function but can miss a pivot too close to the most recent bar.
Attach