NinjaTrader Support Forum  

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 07-13-2010, 01:44 AM   #1
andreneoh
Junior Member
 
Join Date: May 2010
Posts: 15
Thanks: 0
Thanked 1 time in 1 post
Default About WF Optimzation and Custom Defined Metrics

There seems to be a bug which I cannot catch, not sure if anyone else encountered it too.

Assume a default optimization (lookback / in-sample) period of 28 days and a test period (lookforward / out-sample) of 1 day. The results do NOT show trades on a walk-forward day-by-day basis, rather it is a aggregate of trades before, during and after that walk-forward date itself.

Also, is there a way to optimize based on other than the standard metrics in the drop box? Or even, a combination of more than 1 standard or custom defined metric?
andreneoh is offline  
Reply With Quote
Old 07-13-2010, 05:01 AM   #2
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,215
Thanks: 82
Thanked 332 times in 324 posts
Default

Hello andreneoh,

Unfortunately I am not sure if I follow. Can you please tell me what specific results you refer.

When performing such a walk forward test, the Walk forward-tab will display the trades that would have been made on the lookforward day. Since you use a value of 1, it will only reflect trades for one day after the the optimization period - this is as expected.

Unfortunately it is not supported to optimize strategies on different parameters than the ones that are reflected in the Optimize window.
NinjaTrader_Jason is offline  
Reply With Quote
Old 07-13-2010, 11:24 AM   #3
andreneoh
Junior Member
 
Join Date: May 2010
Posts: 15
Thanks: 0
Thanked 1 time in 1 post
Default

I can't seem to get it working like that, is it a setting that I'm missing?

Using the previous example, I'm optimizing for the date of 26Apr, using 28 days that ends on Apr 25. The walk forward result includes trades for 26, 27 AND 28 Apr. Now this is not consistent because some results do only show 1 forward day's worth of results.
andreneoh is offline  
Reply With Quote
Old 07-13-2010, 03:36 PM   #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

andreneoh,

What version of NT are you using? What instrument are you backtesting and on what kind of time frame? Minutes, daily, etc.? Thanks for the clarification.
NinjaTrader_Josh is offline  
Reply With Quote
Old 07-14-2010, 05:34 AM   #5
andreneoh
Junior Member
 
Join Date: May 2010
Posts: 15
Thanks: 0
Thanked 1 time in 1 post
Default

I'm using NT7 beta 15. Testing on a multi-timeframe (5min / 1min). This problem occurs on ES, GC for me.
andreneoh is offline  
Reply With Quote
Old 07-14-2010, 06:33 AM   #6
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,215
Thanks: 82
Thanked 332 times in 324 posts
Default

Hello andreneoh,

Can you please upgrade to NinjaTrader 7.0.0.18 as per the instructions below.
http://www.ninjatrader.com/support/h...ease_notes.htm


Critical Information for users upgrading from Beta 15 or earlier. Please ignore if you are upgrading from Beta 16 or later.

Installation Instructions
Video

Please execute the following steps BEFORE upgrading to this new beta version:

1. Start your current NinjaTrader 7 version
2. Within the Control Center window select File > Utilities > Remove NinjaScript Assemblies and remove every single assembly listed
3. Uninstall NinjaTrader 7 via Windows Control Panel
4. Delete the files of the folder /Documents/NinjaTrader 7/bin/Custom (DO NOT delete the sub folders)
5. Delete the folder C:\Program Files\NinjaTrader 7 if you have a 32-bit machine OR
Delete the folder C:\Program Files (x86)\NinjaTrader 7 if you have a 64-bit machine


Please note that any previously installed 3rd party components will NO LONGER be installed.


Check if the issue persists. If so, can you please walkforward test the SampleMACrossover strategy using 1 Walk forward day and check if the Walkfoward-tab only reflects trades for the 1 walkforward day only.
NinjaTrader_Jason 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is enum IndicatorMethod defined zacharydw00 General Programming 2 04-02-2010 09:11 AM
User defined inputs Jenny61 General Programming 1 02-03-2010 06:08 AM
Trade metrics - account performance lindsayf Miscellaneous Support 4 07-18-2009 12:33 AM
User defined inputs TedLincoln ATM Strategies (Discretionary Trading) 1 03-04-2009 02:26 PM
User Defined Class CraigC General Programming 4 06-19-2008 06:24 PM


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