NexusFi: Find Your Edge


Home Menu

 





ninja trader object reference not set to an instance


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one kk240 with 2 posts (0 thanks)
    2. looks_two zeller4 with 1 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 MWinfrey with 1 posts (1 thanks)
    1. trending_up 4,128 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

ninja trader object reference not set to an instance

  #1 (permalink)
kk240
Europe,Nomad
 
Posts: 84 since Nov 2010
Thanks Given: 25
Thanks Received: 30

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.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
Futures True Range Report
The Elite Circle
Build trailing stop for micro index(s)
Psychology and Money Management
Exit Strategy
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
 
  #3 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404


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

Reply With Quote
Thanked by:
  #4 (permalink)
kk240
Europe,Nomad
 
Posts: 84 since Nov 2010
Thanks Given: 25
Thanks Received: 30


zeller4 View Post
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

Reply With Quote
  #5 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335


kk240 View 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.

Reply With Quote
Thanked by:




Last Updated on December 29, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts