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 > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 04-25-2009, 04:02 PM   #1
Tommyknocker
Junior Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default Custom OptimizationMethod

Hi @all,

i am currently at a point were I want to speed up and harden my testing and steped toward some 'limitations' in NT's OptimizationMethod. So maybe somebody have some hints or workarounds to solve this issues.

1) For some of the custom performance ratios I need the timeframe which is used for the test. So how can I get access to this information within the custom OptimizationType or OptimizationMethod ?

2) I use the GAOptimizer and want to add some kind of semi monte carlo simulation to avoid overoptimization so i want to use the optimizer to run only throug a fixed length but random starting point timeframe. eg. i optimize over a year but run the test 20 times over 1 month at variing start times.
So is there also a possibility to change the time frame in which the current test is running from within the custom OptimizationMethod? Which is in actually the same issue as point 1.

Thanks
Tommyknocker is offline  
Reply With Quote
Old 04-25-2009, 07:49 PM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

I do not believe this is supported, however I will have someone confirm this assumption on Monday.
NinjaTrader_Ben is offline  
Reply With Quote
Old 04-27-2009, 05:10 AM   #3
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,420
Thanks: 252
Thanked 981 times in 963 posts
Default

Hi Tommyknocker, unfortunately it's not supported changing timeframes on the fly, however for coding your own optimization algorithm you can look at the @DefaultOptimizationMethod cs file located in the MyDocuments\NinjaTrader 6.5\bin\Custom\Type folder.
NinjaTrader_Bertrand is online now  
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
Custom Bars Tomas Charting 4 01-21-2009 11:22 AM
Custom Indicator ryebank NinjaScript File Sharing Discussion 1 11-24-2008 01:14 PM
Custom Indicator velocity General Programming 7 08-04-2008 01:01 PM
Custom plotting bobajob78 General Programming 5 04-09-2008 01:04 PM
Custom Indicator Canon54 General Programming 3 12-14-2007 06:53 AM


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