I've been using the MAX function to go back a fixed period of bars to compare the max to my current bar. This is not what I need to do. Let's say 10 bars ago my criteria was met. I need to keep going back and checking this bar to compare to the current bar, no matter how many bars back I have to go. When another bar meets my criteria I will go back to that bar, the first bar's forgotten, until a new bar meets my criteria, etc. Sorry if this sounds confusing, but I'm hoping someone there knows of a function that can help me do this.
Thank you.
Comment