I can give you a couple ideas from how I am working out a few different alerts an studies. You can take initial balance, hi/lows for time period, and/or OHLC studies and run them multiple instances for the different time periods. I do this for globex, the first hour of trading and post IB.
Then you can code alerts that are based on the relation of those levels like And(IB hi< globex hi, post ib hi < globex hi) or with ABS (absolute value functions) < a few ticks or VAP (volume at price < volume threshold). You'll have to come up with what your criteria is. But this is the basic idea I'm working with to ID targets above and below the market.
I played around with this and made it so that a color bar alert signals when the high/low of the bar equals the high/low of the day. These signals are then summed for the day and when the total is 2 or more and higher than the previous sum the value of the high is printed on the chart.
There seems to be a problem with using cumulative sum with color bar alerts in that the sum will disappear and you have to go to Charts and hit Recalculate to get the sum and values back.
Probably not the best solution, but maybe it will give you some ideas. I will post the study collection.