NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 02-17-2007, 10:33 AM   #1
californiaruby
 
Join Date: Feb 2007
Location: , California, USA
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

I used the wizard (Tools | New NinjaScript | Strategies) to create the simplest possible strategy. To do this, after giving the strategy a name, I clicked Next until Finish was available and then clicked Finish.

I using a market replay connection. I am running this copy of NT on a development machine and have copied the recorded data from my trading machine. I copied all folders and files underneath C:\Program Files\NinjaTrader 6\db\data.

When I add this strategy (Strategy tab | right-click Strategy | New Strategy) , I get an unhandled exception popup that reads, in part,
System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.Strategy.StrategyGridDisplay.AddStrate gy(StrategyBase strategy, Int32 rowIndex)
at NinjaTrader.Strategy.StrategyGridDisplay.OnNewStra tegy(Object sender, EventArgs e)

I do not have this problem when connected to simulated data.

I am using 6.0.0.6.

What am I doing wrong?

Thank you.
californiaruby is offline  
Reply With Quote
Old 02-17-2007, 12:26 PM   #2
californiaruby
 
Join Date: Feb 2007
Location: , California, USA
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Further data.

I get exactly the same problem running the SampleAsmStrategy on my trading machine.
californiaruby is offline  
Reply With Quote
Old 02-18-2007, 01:04 AM   #3
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Post imported post

Thanks for reporting, someone from development may request further information if required.
NinjaTrader_Ray is offline  
Reply With Quote
Old 02-18-2007, 05:50 AM   #4
californiaruby
 
Join Date: Feb 2007
Location: , California, USA
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

I'll be happy to help.
californiaruby is offline  
Reply With Quote
Old 02-18-2007, 10:51 PM   #5
californiaruby
 
Join Date: Feb 2007
Location: , California, USA
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

I have a complex workaround -- sorry it is so long.

1)
a) Global simulation mode off
b) Connect to market replay
c) Attempt to load the strategy. continue after exception message.
d) Disconnect from market replay

2)
a) Global simulation mode on
b) Connect to simulated data feed
c) Load the strategy
d) Disconnect from simulated data feed

3)
a) Global simulation mode off
b) Connect to market replay
c) Attempt to load the strategy. continue after exception message.

4)
a) Global simulation mode on
b) Load the strategy

Strategy is now loaded.
californiaruby is offline  
Reply With Quote
Old 02-20-2007, 01:24 AM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Post imported post

I suggest updating to latest NT6B7 and trying to reproduce. Note: Replay files now are in <my documents>\NinjaTrader 6\db\data.

If you still can reproduce then I would need:
- market replay data file(s)
- strategy
- which instrument and timeframe are you running the strategy on?

Please send all to "dierk AT ninjatrader DOT com".

Thanks
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 07:02 AM.