price for a certain time everday

 

I want to find the "Close" price everday at the same time. I've searched and searched, but to no avail.

I keep seeing iClose and iBarshift, and have tried to use, but I am unable figure it out.

I simply want it for the same hour everyday.

Will someone please help with the code?

Thank you,

forexwannabe

 
// Assumes running on the H1 chart.
for(int shift =0; shift < 999; shift++){
   if (TimeHour(Time[shift]) == X){ Print(Close[shift], " ", TimeToStr(Time[shift])); }
}