I've looked everywhere (I think) so I've had to write this post for some help.
I'm receiving "Object reference not set to an instance of an object" on two of my indicators that use OrderFlowCumulativeDelta. Here I will provide my simplest indicator which is having problems.
I have ran logs through each part of the code and it hasn't pointed any areas that is failing specifically. It seems to be failing at the very start of each OnBarUpdate and/or the line where I am syncing the OrderFlowCumulativeDelta with BarsArray[0] maybe?
I've attached my indicator and I am running the indicator on Volumetric 500 tick bar I have provided the exact set up. It fails every time at 28/04/2022 15:26:49 or 28/04/2022 15:26:59 (via logs).
Exact error is: Indicator 'AaSingleBarDeltaTracker': Error on calling 'Update' method on bar 5119759: Object reference not set to an instance of an object..
It randomly started doing this a few days ago and has been doing it ever since so its not just todays data where it isn't working. And the fact that it didn't work on yesterdays data but does today (needs to iterate through yesterday to get to today) is weird.
I think it must be something to do with OrderFlowCumulativeDelta object.
Thanks a lot,
I Appreciate any replies.
Tarik ;D
Comment