if ( Bars.FirstBarOfSession)
{
Bars.Session.GetNextBeginEnd(Time[0], out sessionBegin, out sessionEnd);
Print("Time: "+Time[0]);
Print("sessionBegin: "+sessionBegin);
PrintTrace("sessionEnd: "+sessionEnd);
}
Results for CME US Index Futures RTH Session are exactly as I expect:
sessionBegin: 5/4/2011 9:30:00 AM
sessionEnd: 5/4/2011 4:15:00 PM
Results for Default 24/7 Session seem wrong to me:
sessionBegin: 5/3/2011 12:00:00 AM
sessionEnd: 5/4/2011 12:00:00 AM
I expected to see the following for the Default 24/7 Session:
Time: 5/4/2011 12:00:00 AM
sessionBegin: 5/4/2011 12:00:00 AM
sessionEnd: 5/5/2011 12:00:00 AM
Is there a simple and clear explanation?
If the documentation in the HelpGuide is intended to be an explanation of this, I really think some examples might be in order.
Comment