DateTime sessionBegin,sessionEnd;
if (Bars.SessionBreak)
{
Print("SessionBreak Bar: "+CurrentBar);
Print("Bars.BarsSinceSession: "+Bars.BarsSinceSession);
PrintTrace("DateTime of SessionBreak Bar: "+Time[0]);
Bars.Session.GetNextBeginEnd(Time[0], out sessionBegin, out sessionEnd);
Print("Next sessionBegin: "+sessionBegin);
Print("Next sessionEnd: "+sessionEnd);
}
RESULTS IN FOLLOWING OUTPUT:
SessionBreak Bar: 0
Bars.BarsSinceSession: 0
DateTime of SessionBreak Bar: 6/4/2010 12:20:21 AM
Next sessionBegin: 6/4/2010 12:00:00 AM
Next sessionEnd: 6/5/2010 12:00:00 AM
Why would sessionBegin for GetNextBeginEnd be the "current" session begin time?

Comment