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 > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 04-17-2007, 03:16 AM   #1
BradB
Senior Member
 
Join Date: Jan 2007
Location: , ,
Posts: 180
Thanks: 0
Thanked 1 time in 1 post
Post imported post

HI, I'm running NT6, beta 10. When I right click on a Strategy, the back test option is grayed out. If I try to test via the backtest button, it gives zero results, almost as if there is no data. I did a successful import of historical data earlier. Any ideas?
BradB is offline  
Reply With Quote
Old 04-17-2007, 03:44 AM   #2
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

Right click on an instrument to backtest, not a strategy.

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 11-09-2007, 04:36 PM   #3
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

Hi Ray,

I'm running 6.5 beta and having a problem selecting which Strategy to backtest. (I also had this problem when running 6.0, but I'm just mentioning it now).

Once I've selected an instrument and right-clicked on it and left-clicked on "Backtest", the window that pops up is completely blank! There are no strategies in the pulldown box...here's what I see:

[img=http://img228.imageshack.us/img228/423/blankstrategyanalyzerqi1.th.jpg]

What do I need to do?
Last edited by sbgtrading; 11-10-2007 at 08:32 AM.
sbgtrading is offline  
Reply With Quote
Old 11-10-2007, 01:26 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Hmm. I don't see anything on that link. I suspect you are running into some errors on one or more of your strategies. Please check the Control Center logs. Probably something in the Initialize() method of one of your strategies.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-10-2007, 08:39 AM   #5
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

Check out the link again on the previous message...I believe I fixed it. Let me know if it works.

To check out your possible solution, I deleted all the strategies I either wrote or imported (this leaves the read-only strategies supplied with the distribution). Unfortunately I get the same result as before...and no warning messages show up in the Control Center log.

Ben
sbgtrading is offline  
Reply With Quote
Old 11-10-2007, 12:54 PM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

That is very strange sbgtrading. Could you please try uninstalling NT6.5->clearing browser cache->reinstalling NT6.5 beta 3? Maybe also try reinstalling the .NET 2.0 framework before reinstalling NT6.5 beta 3 too. You can get .NET here http://www.microsoft.com/downloads/d...displaylang=en
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-10-2007, 03:05 PM   #7
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

I'm sorry to say that it didn't work. I reinstalled .NET 2.0, cleared out my browser cache (as well as a bunch of huge temp files) and uninstalled 6.5 and installed 6.5 beta 3.

Should I upgrade to .NET 3.0? I saw it on the Microsoft site you linked me to.
sbgtrading is offline  
Reply With Quote
Old 11-10-2007, 03:58 PM   #8
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
Default

Could you send us your application logs and traces? This is automatically done for you by starting NT and selecting the menu Help > Mail To Support. In the subject, please include "For Jason" and in the body reference this forum thread.

Thanks
NinjaTrader_Ray is offline  
Reply With Quote
Old 11-10-2007, 09:24 PM   #9
KBJ
Senior Member
 
Join Date: Mar 2007
Location: , Florida, USA
Posts: 663
Thanks: 36
Thanked 7 times in 6 posts
Default

I think I saw something like this on one of my strategies when I had an error in the coding of the strategy.

I don't remember the specific anymore, but it might have been something like referencing Open[1], Close[1], etc. without first specifying "if (CurrentBar < 1) return".

Since you're not getting as far as the OnBarUpdate() method, I'd suspect something in the Intialize() method. Try commenting everything in Initialize by prefixing all lines with "//", recompile and see if that gets different results. If so you can selectively uncomment lines until you find which one the StrategyAnalyzer is objecting to.

If the problem isn't in Initialize() look at the set/get code in the Properties section of the strategy.
KBJ is offline  
Reply With Quote
Old 11-10-2007, 09:41 PM   #10
KBJ
Senior Member
 
Join Date: Mar 2007
Location: , Florida, USA
Posts: 663
Thanks: 36
Thanked 7 times in 6 posts
Default

I just checked back and found where it was I ran into the same symptom.

Check this thread: http://www.ninjatrader-support.com/v...ead.php?t=3286
KBJ 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 01:56 AM.