I am using Session GetNextBeginEnd method to get Session Start and End. Code looks like this:
if (Bars.FirstBarOfSession)
{
iSessionID++;
Bars.Session.GetNextBeginEnd(BarsArray[0], 0, out m_SessionBegin, out m_SessionEnd);
Print("Session number " + iSessionID + ". From " + m_SessionBegin + " to " + m_SessionEnd);
}
I am getting very odds results. Using RP 12-12 instrument:
Session number 1. From 28/09/2012 0:00:00 to 28/09/2012 20:55:00
Session number 2. From 01/10/2012 16:00:00 to 01/10/2012 23:00:00
Session number 3. From 02/10/2012 0:00:00 to 02/10/2012 23:00:00
Only Session 3 output is as expected (according to the session template). It is even stranger, because in Historical Data Manager ->Edit, bit data, I can see full data for session 2 (From 0:00 to 23:00), but the methods says that it starts at 16:00.
Is this behavior normal?
Regards

Comment