NexusFi: Find Your Edge


Home Menu

 





NinjaTrader 7 Continuous Contracts


Discussion in NinjaTrader

Updated
    1. trending_up 3,793 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

NinjaTrader 7 Continuous Contracts

  #1 (permalink)
 grausch 
Luxembourg, Luxembourg
 
Experience: Advanced
Platform: TWS
Broker: Interactive Brokers
Trading: Stocks
Posts: 494 since May 2012
Thanks Given: 1,731
Thanks Received: 1,159

Hi,

I am busy looking at backtesting certain strategies in NinjaTrader and I could not find any reference to how historical prices are handled within Ninja.

I am using DTN IQ data, and based on the historical data manager, it looks like the data for each contract (I have gone back to 2011) is shown with actual prices. I am planning on backtesting over longer periods, so I would need either a) continuous contracts to avoid the roll-over gaps (preferred method), or b) a method to identify when the contract has changed from the older to a newer contract.

Would appreciate it if someone can provide some insight into whether NinjaTrader can create a continuous contract from all of the DTN data, or if DTN already has this in their database. If DTN already has this in their database, how would I load this into Ninja?

Thanks in advance.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Quant vue
Trading Reviews and Vendors
REcommedations for programming help
Sierra Chart
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
 
  #2 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


grausch View Post
Hi,

I am busy looking at backtesting certain strategies in NinjaTrader and I could not find any reference to how historical prices are handled within Ninja.

This is probably what you are looking for :


Quoting 
Yes, this is as expected. NinjaTrader merges data automatically when you request historical data that spans multiple expiries (depending on the 'Merge policy' setting). Go to Control Center-->Tools-->Instrument Manager, highlight an instrument and click Edit. Check what setting is used for 'Merge policy'.

If enabled and you request historical data that spans across multiple expiries, it will automatically merge data from previous expiries in the chart. It will be merged as per the rollover dates that are setup.

If disabled (DoNotMerge) you will only load historical data for the expiry in question.

You can check the rollover date as follows. Please go to Control Center-->Tools-->Instrument Manager. Highlight an instrument in the 'Available master instruments' section and click Edit once more.

Subsequently select the Misc-tab and scroll to the bottom. Select the 'Contract months' row and click the '...' button that appears. Select an expiry month and you will see a rollover date listed. You can change the rollover date if you like.

For example, the ES 06-13 expiry is using a rollover date of 3/7/2013. This means historical data before this date will be loaded from the 03-13 expiry and so on.

If you like to load continuous data, you will need to use the ##-## expiry. So highlight the ES and set Expiry to ##-## in the Instrument Manager and click the arrow pointing to the left.


Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 grausch 
Luxembourg, Luxembourg
 
Experience: Advanced
Platform: TWS
Broker: Interactive Brokers
Trading: Stocks
Posts: 494 since May 2012
Thanks Given: 1,731
Thanks Received: 1,159


@rleplae,

Thank you - Using ##-## creates a contract that look to be continuous.

Started this thread Reply With Quote
Thanked by:




Last Updated on September 19, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts