ninja trader object reference not set to an instance
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.
Last edited by kk240; December 29th, 2010 at 08:43 AM.
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.
The following user says Thank You to zeller4 for this post:
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: