Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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.
Can you help answer these questions from other members on NexusFi?
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
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.