If I use a non-time based bars like Volume or Range bars, how can I determine how many bars ago a certain time was? For example, if the current time is 5:07am, and I am trying to determine how many bars ago was 1:00am, I know I could loop through Time[n] where n starts with 1 and increments by 1 until I reach or pass before 1am, but I didn't know if their was a built in function that already does this. Is there a built in function for this? Something like n = BarsAgoFromTime("1:00am"); Or is using Time[n] loop the only way?
Thanks in advance,
Tom

Comment