One idea was to store the values of Tick Count at 1 second intervals and then calculate the difference between the counts at the relevant intervals, or alternatively to add a 1 tick Data series and then use the time stamps to get the bar index on the 1 tick series at each of the two time stamps. At the start of the bar, obviously I can use the bar’s time stamp and add 30 seconds to that time to give the end of the period, but how then do I increment the start/end time stamps each second? In real time I can use DateTime.Now to determine when one second has elapsed, but how can I determine that one second has elapsed on a historical bar? I may well be missing something obvious, so my apologies if this is a dumb question.
Thanks in advance for any help.

Comment