NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

Reply
 
Thread Tools Display Modes
Old 05-27-2007, 05:29 PM   #1
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default Bug in Optimizer

It would appear the "Keep best # results" is messed up. Instead of displaying the top x best results I think it is just providing either last x amount of results.

I ran a simple optimizer on a variable to have it optimize between 1 and 20. It was suppose to optimize on max % profitable and it kept giving me the result of when the result was equal to 20. The % profitable with it at 20 was 56%. When I reran the optimizer with a "Keep best # results" at 20 (all possibilities) it returned results that had some % profitable up at 70%. Obviously when "Keep best # results" is set to 1 it isn't returning the single best result.
NinjaTrader_Josh is offline  
Reply With Quote
Old 05-27-2007, 11:16 PM   #2
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
Default

I can't reproduce. I tried SampleMACrossOver strategy with "max % profitable", varied "Fast" from 2 to 20 (step=1) and tried different "keep # best results".

-> works as expected and always shows best N results
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-28-2007, 02:17 AM   #3
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Hmm thats strange. From the screenshots you can see the 20 possible results and when I set it to show only the top 3 it shows just the last 3. Having a parameter of 2 is suppose to yield higher results than having the parameter set to 20 :/
Attached Images
File Type: jpg allpossibilities.JPG (56.4 KB, 5 views)
File Type: jpg problem.JPG (31.1 KB, 7 views)
NinjaTrader_Josh is offline  
Reply With Quote
Old 05-28-2007, 03:23 AM   #4
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
Default

Not sure I follow. Does it nor work for you using my setup or no?

You need to check the column "max % profitable" (which is the target of your optimization and which is on none of your screen shots). Other columns are irrelevant for comparison.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-28-2007, 10:44 AM   #5
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Jeez. Can't think properly late at night. Okay I redid the screenshots to now show the relevant column, but the problem is still there.

The maximum profit from the 20 possibilities is 52.17% shown in the first screenshot. When I switch the "Keep best # results" to three you can see that 52.17% is not even displayed as any of the top 3 results.

A pattern is also easily detected from the parameters that it is showing as results. If I choose to see top 5 results I get the results for 20/25, 19/25, 18/25, 17/25, and 16/26. If I choose to see top 1 results I will get 20/25 and top 2 will yield 20/25 and 19/25.
Attached Images
File Type: jpg 1.jpg (43.4 KB, 11 views)
File Type: jpg 2.jpg (91.8 KB, 9 views)
Last edited by NinjaTrader_Josh; 05-28-2007 at 11:03 AM.
NinjaTrader_Josh is offline  
Reply With Quote
Old 05-29-2007, 02:02 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
Default

There is a bug in max % profitable (long/short/all) which will be resolved with next update.

Thanks for pointing that out.
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 09:38 PM.