Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer and Contract Rollover

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy Analyzer and Contract Rollover

    I've been having difficulty understanding how to do contract rollover in Strategy Analyzer. The instrument is CL which changes contract every month. Say, I want to test my strategy over the entire year of 2016. How is this done?

    #2
    Helly reynoldsn, and thank you for your question.

    To clarify the way contract front-months work, if you select for instance 03-17 as your front month expiry, and you iterate over 2 years, you will have data available for the entire 3 year range automatically. The historical data server you are pulling from has organized data in such a way that you can pull a continuous feed from a single front month going back as far as there is historical data for that instrument.

    Therefore to test an entire year's worth of CL data, with an expiry front-month of 01-17, just select CL 01-17 as your instrument, and then a data range that covers a year.

    Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      How does ninjatrader choose the current contract month when testing a large date range? Does it use contract roll dates rather than expiration dates? Is there a way to find out on what dates it chooses to use which contract? When viewing the chart or results, is it possible to determine which contract is being used for a particular trade? Thanks.

      Comment


        #4
        Hello wooofad,

        Thanks for your post.

        The strategy analyzer and your chart, by default, will use the contract rollover dates for pulling historical data.

        You can find all rollover dates on a per instrument basis by going to Tools>instrument then type or find an instrument, select it and select "edit" at the bottom right. In the "Instrument" window, scroll to the last row which will be the contract months, click in the row to then open the "Contract months" list. For reference, please see https://ninjatrader.com/support/help...nstruments.htm

        "When viewing the chart or results, is it possible to determine which contract is being used for a particular trade?" No. What you can do is to export the "Trades" display of the analyzer to a spreadsheet and then filter it (though the spreadsheet functions) by dates related to the rollovers. On a chart, you could manually add vertical lines to visually define the contract dates.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        62 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        134 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X