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

Market Analyzer Support for the NinjaTrader Market Analyzer.

Reply
 
Thread Tools Display Modes
Old 05-15-2009, 11:02 AM   #1
Thorserb2
Junior Member
 
Join Date: May 2008
Location: Chicago
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default How can you create a continuous contract for long term futures contract backtesting

I am trying to backtest and optimize over longer periods than just the current contract. Is there a way to create a continuous contract or is there way where I can use a set day as a rollover date for a contract and optimize / analyze over a longer term period?
Thorserb2 is offline  
Reply With Quote
Old 05-15-2009, 11:16 AM   #2
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,336
Thanks: 146
Thanked 253 times in 249 posts
Default

Hi Thorserb2,

Thank you for your post.

For this you would want to merge previous contracts into the current contract using the procedure outlined at the following link: http://www.ninjatrader-support.com/H...eV6/Merge.html
NinjaTrader_Kyle is offline  
Reply With Quote
Old 03-15-2010, 06:27 AM   #3
waverider
Member
 
Join Date: Nov 2009
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Merging Contracts

Hi Team,

Is there a limit to how far back I can go merging historic ES contracts to the present contract?

Can I then merge this 'continuous contract' into the next ES contract that will come, and continue to maintain this 'continuous contract' ?

Does the merge include all TICK data? Only minute data? Only data recorded historically on my machine?

Many thanks for the answers, much appreciated, keep up the good work!
waverider is offline  
Reply With Quote
Old 03-15-2010, 08:17 AM   #4
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,336
Thanks: 146
Thanked 253 times in 249 posts
Default

Hello waverider,

Thank you for your post.

1.) "Is there a limit to how far back I can go merging historic ES contracts to the present contract?"

There is no limit. You may merge as many contracts as you would like.

2.) "Can I then merge this 'continuous contract' into the next ES contract that will come, and continue to maintain this 'continuous contract' ?"

Yes, that is correct. For example, if you had merged several prior contracts in to the 06-10 contract you would only need to merge the 06-10 in to the 09-10 when the next contract is available.

3.) "Does the merge include all TICK data? Only minute data? Only data recorded historically on my machine?"

Interval is selectable in the merge. Historical data will need to exist in your database in order to merge.
NinjaTrader_Kyle is offline  
Reply With Quote
Old 03-15-2010, 07:46 PM   #5
waverider
Member
 
Join Date: Nov 2009
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Merging Contracts

Fantastic, thanks Kyle,

So on point 3) regarding the data that is available to merge:

I'm not yet very familiar with stored data in Ninja -

1. Is stored data seperate to Market Replay data that I might store?
2. Where / How does Ninja store data?
3. If I wanted to import data into Ninja to over-ride (or merge with?) my stored data, is that easy enough to do? No risk of duplicating data, etc?
4. I take it that if I do import such data, this is not able to be made available for Market Replay?
5. For automated backtesting, do I have to use Market Replay data?

Sorry for the newbie questions, much appreciated!!

wave
waverider is offline  
Reply With Quote
Old 03-16-2010, 05:47 AM   #6
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,220
Thanks: 83
Thanked 333 times in 325 posts
Default

Hello wave,

1. Yes, Market Replay data is saved separate from historical data; this is not the same data.

2. Historical data is saved in the database. (My) Documents-->NinjaTrader 6.5-->db-->NinjaTrader(mdb)

3. Yes, you can import historical data as per the instructions at the following link.
http://www.ninjatrader-support.com/H...V6/Import.html

4. Correct.

5. No, the Strategy Analyzer which is used to backtest cannot make use of Market Replay data; it uses historical data only. More information can be found at the link below.
http://www.ninjatrader-support.com/H...AStrategy.html
NinjaTrader_Jason is offline  
Reply With Quote
Old 03-16-2010, 10:34 AM   #7
waverider
Member
 
Join Date: Nov 2009
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Continuous Contract

Thanks again!

If I am using IQ Feed as a data provider, and they offer a continuous contract for the ES, is there any reason why that can't be used in Ninja if I create a new instrument (ES #F) specifically for that feed?

thanks
waverider is offline  
Reply With Quote
Old 03-16-2010, 10:38 AM   #8
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,336
Thanks: 146
Thanked 253 times in 249 posts
Default

Hi waverider,

Thank you for your reply.

You can access continuous contracts by selecting the '##-##' expiry for your futures instrument. No additional configuration would be required.
NinjaTrader_Kyle is offline  
Reply With Quote
Old 03-16-2010, 10:59 AM   #9
waverider
Member
 
Join Date: Nov 2009
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Continuous Contract

thanks for that,

I've managed to set up a continuous contract for the ES. Problem is, it only works for daily. When I drop to minute data I get the error "Ninja Trader data server does not support this instrument, no data available"...

If it works for daily, shouldn't I be able to produce it for minute?

Thanks again,
waverider is offline  
Reply With Quote
Old 03-16-2010, 11:07 AM   #10
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,336
Thanks: 146
Thanked 253 times in 249 posts
Default

Hi waverider,

Thank you for your reply.

Are you connected to other providers as well, or just IQ?

If you are connected to multiple providers, please let me know in what order you connect.
NinjaTrader_Kyle is offline  
Reply With Quote
Old 03-16-2010, 11:15 AM   #11
waverider
Member
 
Join Date: Nov 2009
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Continuous Contract

I connect to zen fire first, followed by IQ
waverider is offline  
Reply With Quote
Old 03-16-2010, 11:19 AM   #12
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,336
Thanks: 146
Thanked 253 times in 249 posts
Default

Hi waverider,

Thank you for your post.

With that connection order, the behavior you are seeing would be expected.

Continuous minute and tick charts will be available when connected to IQ first or when only connected to IQ.
NinjaTrader_Kyle 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
Continuous contract max1ci6 Miscellaneous Support 5 06-08-2012 01:54 AM
Continuous Contract heyligerb Strategy Analyzer 5 03-25-2009 03:49 PM
Backtesting futures, contract duration? ju1234 Strategy Development 1 11-30-2008 04:11 PM
Backtesting continuous YM contract monpere Strategy Analyzer 28 11-27-2008 05:19 AM
Continuous contract for MSCI Taiwan futures Specterx Charting 1 09-27-2008 08:46 AM


All times are GMT -6. The time now is 07:20 AM.