I am trying to gain a better understanding of the order of events inside the OnBarUpdate() method.
I read the http://www.ninjatrader.com/support/h..._are_built.htm section, but still have 2 questions here...
1) I understand minute bars are retrieved from the data provider when a new 1min chart is created. I also understand 1min bars are built/estimated tick-by-tick in real-time when inbetween minute intervals (such as 9:45:33). But what happens when the minute bar is completed and a new bar begins to form... is the previous completed minute bar then downloaded from the data provider to replace the one NT was building using ticks? or all real-time bars created by NT using tick data only?
2) Regarding multiseries...
suppose I have two 1min series on a chart, if I get the first tick of a new bar, using
if(FirstTickOfBar && BarsInProgress == 0)
...and then use that event to do some calcs using both series ( for example: Closes[0][0] + Closes[1][0] ) am I guaranteed that Closes[1][0] will be of a timestamp corresponding with the appropriate new bar? or is there any chance that Closes[1][0] could still have a timestamp corresponding to data that would still be associated with the prior bar?
Comment