Long time NinjaTrader user, paid lifetime subscription, etc etc.
I've been programming indicators/strategies for a few years now on NinjaTrader (moved from Metatrader).
I have a Strategy that I was watching this morning, and it decided to change the trend direction based on a call to OnBarUpdate() that had a timestamp of 4 hours in the past. Any indication as to why this would happen? I can codify that unwanted behavior out of my Strategy easily, with my own Time variable that would save the last Time[0] and return out of the top of OnBarUpdate() if any new Time[0] is in the past.
But I am really curious as to why this happened in the first place. Is it an issue with NinjaTrader? It clearly is not an issue with my Strategy, as I don't call OnBarUpdate() and I don't muck with the Time[0] series in any way/shape/form.
Here's a screenshot for evidence.
Thank you for your assistance!
Timothy Welch
Comment