We are making some assumptions about dataseries' maintaining their values throughout the life of the entire historical backtest that are causing all sorts of crazy behaviour.
When a new batch of data gets loaded from the feed during an analysis as far as we can tell it does this in batches. Am I correct in assuming that we cannot be guaranteed what order the batches of data are coming in on?
Also, we declare some DataSeries in our main indicator attached to our strategy. I have found that the indicator's CurrentBar property will be totally different from the strategy's.
None of this behaviour occurs when we disconnect the datafeed.
Can I get some insight as to what's happening differently when the datafeed is connected?
What assumptions can we not make about the DataSeries objects, the availability of data and previous values from the current bar?
Also sometimes we see the indicator's CurrentBar property set to -1 inside the OnBarUpdate. Under what circumstance does this occur?

Comment