PDA

View Full Version : Bar Dates from custom Optimize metric


Matt_H
08-07-2007, 05:36 PM
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

NinjaTrader_Dierk
08-08-2007, 02:24 AM
Not sure I follow. Within NinjaScript you e.g. can access the time stamp of the current bar by Time[0].

Matt_H
08-08-2007, 06:44 AM
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

NinjaTrader_Dierk
08-08-2007, 06:53 AM
Unfortunately this is not supported.
Note: You never should overwrite any of the @...cs files in <my documents>/NinjaTrader6/bin/Custom.

Matt_H
08-08-2007, 11:13 AM
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

NinjaTrader_Dierk
08-08-2007, 11:15 AM
Glad to hear that.