Session Begins: 6:00 PM
Session Ends: 4:15 PM
The following code returns questionable results
int sessionBarsAgo = 3;
if (Bars.GetSessionBar(sessionBarsAgo) != null)
{
Print("The prior session's time is:"+Bars.GetSessionBar(sessionBarsAgo).Time.ToStr ing());
Print("The prior session's close is: " +Bars.GetSessionBar(sessionBarsAgo).Close.ToString ());
}
Here is the results:
The prior session's time is: 5/27/2008 12:00:00 AM
The prior session's close is: 1390.75
The close value appears to be correct but I would have thought that thte time would have been either the 6:00 PM or 4:15 PM matching the Chart Properties Settings.
What have I missed to get the time correct?
Thanks
Comment