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.

      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

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          79 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          45 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          29 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          32 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          65 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X