Quick coding question regarding times and highs

 
Anyone have a little chunk of code that would tell you say the high between 3am-6am (local time on my computer) when the current local time on my computer is 10am?
 
The little chunk of code you seek will include the functions iHighest(), to tell you which bar has the highest value, and iHigh(), to tell you the high on that bar.