Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cre8able, Yesterday, 04:22 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by stafe, 04-15-2024, 08:34 PM
        5 responses
        28 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by StrongLikeBull, Yesterday, 04:05 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Mestor, 03-10-2023, 01:50 AM
        14 responses
        375 views
        0 likes
        Last Post z.franck  
        Started by molecool, 10-09-2017, 10:48 AM
        5 responses
        1,621 views
        0 likes
        Last Post trader-ap  
        Working...
        X