breakouts in hourly chart

 

I am working on coding a breakout strategy on an hourly chart. I want to check on the new opening candle if there is a 3 pip break of prior close. I do i go about doing this on an hourly chart.

I was thinking about using MarketInfo(Symbol(),Minute,High[i]) or something like that but how do I know if it broke low before it broke high or vice versa?

 
start() function, works on every tick
 
Use Low[1] and High[1] for prior candle low and high.
 
qjol:
start() function, works on every tick

Oh. I also meant to say that I am not running it live. I am just using the indicator to get quantitative data on historical price and not taking into account the current bar. How do I check if the is a 3pip break up/down of the Close[i]?