![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |