How You solve ninja,object reference not set to an instance. Error. this happening during initialiazation of strategy
This is really wierd problem, yesterday everything was working well, and today started showing this ninja trader object reference not set to an instance message in log file.
Is in ninja some sort of code cache, and if how i can clear it.
I had backup copy, and still showing message, and also have "prototype" and that also not work.
Could'nt made any stupid changes to three different version,
I removed some indicators what i installed yesterday, no cure.
This is harakiri using this software, if you just chart max 5 charts, and not trade using ninja its ok, but if you start developing startegy or backtesting it is sepuku.
During four years journey with ninja, its so near end, so many problems.
Can you help answer these questions from other members on futures io?
Not sure how many error situations this covers, but my experience is that this occurs when you have a DataSeries or BoolSeries that's declared in Variables but not in the Initialize section.
If you still can't get it to compile, post the code.
hth
The following user says Thank You to zeller4 for this post:
Thanks for reply, and help It was this case, i think that happen usually 6.5 --> conversion.
I found some workaround, bandage, I will write here when I find permanent solution. Thank
and folks who read this question, this is not anymore active profblem for while.
regards
If the problem is truly what zeller4 suggested relating to a dataseries, then the problem isn't conversion from 6.5 to 7. For every dataseries you define as a variable you MUST have a corresponding entry in the Initialize() method. As zeller4 mentioned, not having the entry in Initialize() method will result in the error you described.
So, there is NO workaround. That's just a fact of programming.
The following user says Thank You to MWinfrey for this post: