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 > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 05-09-2011, 01:46 AM   #1
splat
Member
 
Join Date: Nov 2009
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
Default multiple timeframes and "Days to load"

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.
splat is offline  
Reply With Quote
Old 05-09-2011, 03:27 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 05-09-2011, 08:18 AM   #3
splat
Member
 
Join Date: Nov 2009
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
splat is offline  
Reply With Quote
Old 05-09-2011, 09:12 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
Default

Correct, as long as the data loaded is long enough to satisfy BarsRequired for all series and also for your calculations to initialize properly.
NinjaTrader_Bertrand 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
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


All times are GMT -6. The time now is 11:00 PM.