At the close of my OnBarUpdate () section, I have the code:
[FONT=Courier New][COLOR=black][COLOR=black][FONT=Courier New]Print([/FONT][/COLOR][COLOR=maroon][FONT=Courier New]"Time[0] "[/FONT][/COLOR][COLOR=black][FONT=Courier New] + Time[[/FONT][/COLOR][COLOR=purple][FONT=Courier New]0[/FONT][/COLOR][COLOR=black][FONT=Courier New]]);[/FONT][/COLOR][/COLOR][/FONT]
Is this correct?
If this is correct, then I am confused; in my output window, I see the following output corresponding with the 28/09/2010 daily bar:
Time[0] 28/09/2010 0:00:00
I can be certain that the above refers to the 28/09/2010 bar, as I am also outputting other data (including OHLC data), and so can see easily which bar is being referenced.
But “0:00:00” seems to refer to the beginning of the 28/09/2010 bar (and not to the end).
This is not as I expected given the NT documentation about timestamps, i.e.
NinjaTrader stamps a bar with the closing time of the bar. For example, a minute bar with a time of 9:31:00 AM has data from 9:30:00 AM through 9:30:59 AM.
What have I misunderstood?
Thanks.
Comment