Hello Grant.
Here is a screenshot .
Let´s start at bar 0 (current bar), the study check if 15 (lateral bars) bars ago is the highest high. Let´s say it is, ( we will name this point , point A) it is not enough to be considered as a pivot yet.
Now we know point A is the highest high from our...