If load 3 days of worth of bars on my chart. I have bars from: 18th May 18:01 until now(21st May 07:54). If I run the following code (with added 1 minute data series):
if (
(Bars.IsFirstBarOfSession)
&& (BarsInProgress == 1)
)
{
Print("Is first bar of session");
How come it only Prints twice and does not count the first bar on the chart as the first bar of tha session? Output:
Is first bar of session, Time = 19/05/2025 18:01:00
Is first bar of session, Time = 20/05/2025 18:01:00
If I’m not mistaken, it IS counting this as the first bar, which is the ETH trading hour start time. 18:00. The bar closes on 18:01 which is why it’s providing that as the output. It’s not printing out for May 21 because the range is only until 07:54, and doesn’t get to 18:00.