![]() |
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
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Member
Join Date: Nov 2009
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
|
I am not sure this is the right forum, but it seems the closest one. This question concerns running a strategy, either from a chart, from the NT Strategies tab, or the Strategy Analyzer, and how to specify the amount of data to load.
I have a multi-timeframe indicator that looks at a range of timeframes up to say 240min bars. Suppose I want to use that indicator within a strategy that runs on 1 second or 1 tick bars. In order for the indicator to get enough (say 200) of the 240min bars, it will need about 34 days of data. Does this mean my strategy has to work its way through 34 days worth of 1 second bars or 1 tick bars, just so it can run for an hour ? On a chart, I can choose whether to load data by days or bars. If I choose days, then a 1 second chart gets a lot of bars. OTOH, if I choose bars, a multi-timeframe indicator gets the same number of bars for each timeframe (e.g. 400 240min bars and 400 1 second bars), but I am not sure that this does any harm, other than seeming odd. At least, it does not need 34 days of 1 second bars. When starting a strategy from the Strategies tab, I cannot see an option for loading data by number of bars, only "Days to load". The Strategy Analyser is different again (if I want to back-test on 1 second bars, then probably I have to accept that it will take a while). Please advise how best to specify the quantity of data to load when a strategy runs on very fast bars, and uses an indicator that needs much longer bars. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
splat, generally the amount of days loaded is set for all series involved by the primary series your strategy / script is using. So if one series requires a certain lookback to deliver the results seeked, the the other series would load this data as well - specifying this more granular programmatically is on our feedback list for consideration.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Nov 2009
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks. I think you are saying that it does not make much difference at present whether I specify number of bars to load or number of days to load.
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Correct, as long as the data loaded is long enough to satisfy BarsRequired for all series and also for your calculations to initialize properly.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changin "&" conditions to "or" for multiple comparisons. | visounds | Strategy Development | 6 | 02-17-2011 12:36 PM |
| "Days to Load" when a strategy is enabled | okay88la | Automated Trading | 1 | 02-09-2011 03:08 AM |
| Optimizer: "Time Remaining" should display Days in addition to HH:MM:SS | kdoren | Version 7 Beta General Questions & Bug Reports | 1 | 11-18-2009 04:03 AM |
| summary of "strategy realized" is not equal "account performance, total net profit"" | Fragolino | Miscellaneous Support | 1 | 02-19-2009 04:12 AM |
| Multiple Simultaneous Trades at "Exit on Close" With Setting "1 Entry Per Direction&q | KBJ | Strategy Analyzer | 1 | 04-27-2007 05:34 AM |