protected override void OnBarUpdate()
{
Print("The CurrentBar is " + CurrentBar.ToString() + ". The date is " + Time[0].Date.ToString() + ". The Count is " + Count.ToString() + ".");
}
From the Output window, I saw the last line is as following.
The CurrentBar is 197. The date is 2010-10-14 12:00:00 AM. The Count is 199.
Actually, I expexted the last line in Output window should be something like:
The CurrentBar is 198. The date is 2010-10-15 12:00:00 AM. The Count is 199.
It looks like the last bar 198 as of 2010-10-15 is missing. Did I do something wrong in code? How can I get the missed last bar?
By the way, I did set "CalculateOnBarClose = true;" in Initialize() process.
Thanks.

Comment