- the last time price crossed a specific value going in a specific direction, and
- the pivot high/low since that time.
While I’d be delighted if the code just landed in the responses here, I’d also be super grateful for any pointers, such as keywords that might be helpful in implementation.
For example, I wonder if I need to use a (repeat-until) loop, going back bar by bar until the condition of having Crossed the specific value in the specific direction becomes true? And from there, do I need to create a data set of all bar highs/lows since then, and use something like MinList/MaxList to find the high/low?
Any pointers, even if just to say I’m likely barking up the right/wrong tree(s) with the keywords I'm considering using, would be uber appreciated!