NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 06-14-2010, 09:03 AM   #1
pat.d
Junior Member
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default Optimizer Start Date - End Date

Is it possible to find out time interval the optimizer is running on from inside OptimizationType.GetPerformanceValue?

I am looking for the whole time interval, not just when trades were triggered.
pat.d is offline  
Reply With Quote
Old 06-14-2010, 09:18 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Pat.d,

Welcome to the NinjaTrader forums!

Not sure exactly what you're looking for here. You can access the interval that the strategy is run against with BarsPeriod.Id and BarsPeriod.Value

Please clarify if you're looking for something else.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 06-14-2010, 09:25 AM   #3
pat.d
Junior Member
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks for a quick reply.

I am not concerned about bars type.
Let's say my bars are 1 minutes, and I optimize against 1 year of historical data.
I want to know that 1 year number, even if there were only one trade during this period. Is this information available?
pat.d is offline  
Reply With Quote
Old 06-14-2010, 09:36 AM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi Pat.d,

When you run the optimizer you select the From and To date within the UI. Unfortunately this property isn't accessible programmatically.
NinjaTrader_RyanM 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
Referencing DataSeries End date property miker General Programming 1 06-01-2010 05:24 AM
Suggestion: Allow a Fixed Start Date for charts and strategies jackyd Version 7 Beta General Questions & Bug Reports 2 01-07-2010 02:20 PM
Order fill date and execution date Argo1 Strategy Development 5 09-07-2009 07:21 PM
Start date in New strategy screen has disappeared in NT 6.5.1000.5 oclop Automated Trading 1 08-21-2008 10:40 AM
NT6.5 bug Start Date End Date... greg_gross90 Charting 1 05-30-2008 08:30 AM


All times are GMT -6. The time now is 04:41 AM.