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

backtesting futures - adjustment

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

    backtesting futures - adjustment

    I saw a Youtube video on advanced strategy development which showed a few options back adjustment, no adjustment etc for futures trading.

    Suppose I want to do an adjustment while backtesting futures data, is there a place where I can specify my own adjustment rules, e.g. suppose I want to rollover say N days before maturity/ expiry for a particular market?

    #2
    Hello,

    Thanks for your post.

    This would not be something that would be available to change in the Strategy Analyzer. If you'd like to adjust the rollover dates for any contracts, the only option would be to add your own rollover dates in the Instrument Manager or to use time checks in your logic for specific dates.
    Drew O.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_DrewO View Post
      Hello,

      Thanks for your post.

      This would not be something that would be available to change in the Strategy Analyzer. If you'd like to adjust the rollover dates for any contracts, the only option would be to add your own rollover dates in the Instrument Manager or to use time checks in your logic for specific dates.
      Hi Drew, thanks for the answer. Would you have any information or link about what is the default rollover date assumptions used for contract adjustments particularly for some of the major contracts like ES, CL, GC, etc?

      Comment


        #4
        Hello,

        Thanks for your note.

        NinjaTrader comes set up with expiratiosn based on the typical rollover date of years past.

        You can view an instruments default rollover configuratrion in the Instrument Manager. This can be found under Tools -> Instrument Manager -> Search for the instrument by name or description -> Select the instrument once found -> Edit. Inside the Edit window, click the "Misc" tab and scroll to the very bottom. Select "Contract months" and then press the "..." button that appears.
        Drew O.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_DrewO View Post
          Hello,

          Thanks for your note.

          NinjaTrader comes set up with expiratiosn based on the typical rollover date of years past.

          You can view an instruments default rollover configuratrion in the Instrument Manager. This can be found under Tools -> Instrument Manager -> Search for the instrument by name or description -> Select the instrument once found -> Edit. Inside the Edit window, click the "Misc" tab and scroll to the very bottom. Select "Contract months" and then press the "..." button that appears.

          Thanks Drew. One more question, when I click on the "..." and looked at the rollover dates, some of the them have an "Offset" value. What does the "Offset" value stand for?

          Comment


            #6
            Hello,

            The offset is the value that NinjaTrader uses to merge the past historical data to ensure a smooth flow of data. The offset value refers to the difference between the last price of the previous contract, and the open price of the next contract on the specified day for rollover.
            Drew O.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            21 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            10 views
            0 likes
            Last Post cre8able  
            Working...
            X