I have noticed that IsFirstTickOfBar in the Primary data series (5 minute) is true immediately after all historical data has loaded even if the last bar is only partial completed. After historical processing, I would expect IsFirstTickOfBar to only become true when the bar currently forming is completed.
I have also checked with the second data series commented out and I get the same results.
I have attached a reduced sample of code that illustrates the problem.
Comment