I was working on this strategy that uses two dataseries (ES 1-range and ES 2-renko) and while debugging I discovered that the OnBarUpdate() method gets called with Time[] going backward on multiple occasions
If I add this snippet in my OnBarUpdate() :
if (lastTime != null && DateTime.Compare(Times[1][0], lastTime)<0) {
Print("Time bug??");
}
lastTime = Times[1][0];
I am seeing multiple times in the output that the test evaluates to "true", is this a bug? or am I missing something here.
I was under the impression that the feed of data should always move forward in time?
Thank you
Comment