Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting Mulitple Months, Multiple Contracts

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

    Backtesting Mulitple Months, Multiple Contracts

    I want to backtest oil, CL, for an entire year - but with the Backtester I have to select a contract. CL changes every month. How would it be possible to backtest over an entire year?

    #2
    Cl ##-## ?

    Comment


      #3
      Hello reynoldsn,

      Thanks for writing in.

      Sledge is correct, if you data provider supports continuous contracts you may use ##-## for the contract month. However, NinjaTrader has a default merge policy under Tools> Options> Data of MergeBackAdjusted that you should alos just be able to use the current front month and past months data will be merged and adjusted to it.
      BrandonNinjaTrader Customer Service

      Comment


        #4
        I've been using AMP with CQG data - do they support continuous contracts? Are you saying that despite that, I could set MergeBackAdjusted to run the year as well?
        In any event, how will the Backtester pick which day to change contracts?

        Comment


          #5
          Hello reynoldsn,

          Thanks for your reply.

          With NinjaTrader CQG supports historical data for continuous contracts but not realtime. Yes, you may use the current front month with the default merge policy.
          NinjaTrader will over based on the settings under:
          Tools> Instrument Manager
          Select the instrument under Available Master Instruments and press Edit
          Select the Misc tab
          Scroll to the bottom and select Contract Months then press the '...' button
          Now you will see when each contract is set to rollover
          BrandonNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by RookieTrader, Today, 09:37 AM
          3 responses
          15 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by kulwinder73, Today, 10:31 AM
          0 responses
          5 views
          0 likes
          Last Post kulwinder73  
          Started by terofs, Yesterday, 04:18 PM
          1 response
          23 views
          0 likes
          Last Post terofs
          by terofs
           
          Started by CommonWhale, Today, 09:55 AM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by Gerik, Today, 09:40 AM
          2 responses
          7 views
          0 likes
          Last Post Gerik
          by Gerik
           
          Working...
          X