I run a back test on a stock. I add a print statement to the OnBarUpdate method:
protectedoverridevoid OnBarUpdate() {
Print(Time[0].Date.ToShortDateString());
The last bar on the chart is 7/1/2009
My output reads:
Initialize
Initialize
6/26/2009
6/29/2009
6/30/2009
I originally thought since I have the 7/1/2009 data and since I can see the bar on the chart that the OnBarUpdate event would have fired, but I guess that is not the case.
How do I get around this?
Multiple time frames Add(PeriodType.Minute, 60)???
I basically need to know what Instruments I need to open strategies for in the morning so I can trade them.
Thanks,
Erik
Comment