With my 30 minute instrument, I would've thought the 10 AM bar would have BarsSinceSession = 1. 10:30 AM bar would have BarsSinceSession = 2, etc.
But this code:
if (BarsInProgress == 0 && Bars.BarsSinceSession == 1)
{
Print(" current time is: " + Time[0]);
}
Shows time is already 10:30 AM when BarsSinceSession == 1.
Is BarsSinceSession zero-indexed?
Comment