I added a 60 min data series to my indicator using the standard (I then add the indicator to a 5-Range Chart) :
And in OnBarUpdate, I put in the following:
{
{
Print(String.Format("Current time: {0}",DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss.fff tt")));
Print("---");
...
Current time: 08/11/2021 01:02:08.587 PM
---
CurrentBar: 63 Time[0]: 08/11/2021 12:00:00.000 PM
Current time: 08/11/2021 01:02:08.625 PM
---
CurrentBar: 64 Time[0]: 08/11/2021 01:00:00.000 PM
Current time: 08/11/2021 01:02:08.659 PM
---
CurrentBar: 65 Time[0]: 08/11/2021 02:00:00.000 PM
Current time: 08/11/2021 01:02:08.661 PM
Why would the first tick of bar be called for the 2:00 PM bar when it's only 01:02 PM? I guess I missed the lesson on dealing with Range chart - can I get some pointers on this?
Thanks!

Comment