SessionBreak and FirstBarOfSession don't seem to get set for the first session? If I run this code below, for most contracts (6A, NKD etc) and put in a session of 17:00 to 17:05, for three days, you get no first bar or session break on the first day.
What am I missing?
thanks
Dave
protected override void OnBarUpdate()
{
if (Bars.FirstBarOfSession) {
Print("First Bar");
}
if (Bars.SessionBreak) {
Print("Session Break");
}
Print("here");
}

Comment