My data feed is 1minute bars
I am looking for a way to calculate a moving average on each bar close, but I want to take eg the average over 5 values, where each value is the same time of the bar over the last 5 days.
So for example, Time[0] = today @ open 9.30.00 (hour 9, min 30 and sec 0)
I then want to access Close now, close on yesterday same time, day before same time, day before that same time and day before that same time
I cannot figure out how to do this in Close.GetValueAt( ) requires an int how many bars back. But then I have to calculate how many bars there were over 1 day (and deal with holidays, early closes, sundays, day light savings etc).
Is there a way to access Close[ ] at a specific time?
Hope i explained it well. Looking forward to some ideas.

Comment