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 > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 08-07-2007, 05:36 PM   #1
Matt_H
Junior Member
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
Default Bar Dates from custom Optimize metric

Hi,

I trying to write my own metric for optimizing the systems. I can't seem to access any bar dates via .. Time or Times... Any suggestions?

thanks

Matt
Matt_H is offline  
Reply With Quote
Old 08-08-2007, 02:24 AM   #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

Not sure I follow. Within NinjaScript you e.g. can access the time stamp of the current bar by Time[0].
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-08-2007, 06:44 AM   #3
Matt_H
Junior Member
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
Default re: custom metric

I'm writing to the files that the optimizer sees in the bin\Custom\Type directory. e.g. (@MinDrawDownShort.cs)... I only seem to get access to systemPerformance here, not anything related to iteration bar data....
Ideally, I would like to get access to when max dd occurs, etc..

Regards

Matt
Matt_H is offline  
Reply With Quote
Old 08-08-2007, 06:53 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

Unfortunately this is not supported.
Note: You never should overwrite any of the @...cs files in <my documents>/NinjaTrader6/bin/Custom.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-08-2007, 11:13 AM   #5
Matt_H
Junior Member
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
Default re: custom optimize metrics

I haven't overwritten any of the default metrics, however it is quite handy to use combinations of the systemPerformance methods available. I like the software....

Regards


Matt
Matt_H is offline  
Reply With Quote
Old 08-08-2007, 11:15 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

Glad to hear that.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
new contract dates in Sim101 ratherBgolfing Automated Trading 3 03-20-2010 11:03 AM
DashStyle.Custom...? funk101 Indicator Development 3 05-06-2007 08:34 AM
Custom bars purpledawn Indicator Development 1 04-11-2007 06:17 AM
Using a custom indicator SuzyG Strategy Development 17 03-13-2007 10:59 AM


All times are GMT -6. The time now is 12:06 PM.