If my formula calculates a max value of 10 for a bar (after the 8:30 day session start), is there a way to signal if I get a value >= 10 for a subsequent bar? Regardless of how many bars later the next bar that signals 10 occurs?
In other words, is there a way to look back all the way to the opening of the day session--8:30am--to see if my current bar's value is >= the max value calculated (which happened to be 10 in my example)?
SMA, MAX, MIN, SUM use a period that trails the market. I want that period to always go back to the start of the day session. (Or, I want that period to always go back to the same bar.)
I hope I'm being clear.
Is there a way to do this?
Thank you for the help.
Comment