In a 1-minute chart, when I run the following code to get the last sessions Daily Bar:
Print("before");
if ( Bars.GetSessionBar(1) == null )
Print("No data");
else
Print("Data Available");
Only the word "before" is printed, and neither subsequent print statements are printed. It seems that it is failing on Bars.GetSessionBar(1). My session in my 1-minute chart is set at 12:00 am, 12:00am.
Thoughts?
Thank you
Comment