Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add 2nd Future AddDataSeries - contract period issue

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

    Add 2nd Future AddDataSeries - contract period issue

    Hello all,

    I'm just thinking ... I would like to add a 2nd data series to a strategy for futures on the ie. ES

    But how to add it and backtest without the rollover/contract period for a seamless backtest over several years?

    I'm only using this but for stocks
    AddDataSeries("VXX", BarsPeriodType.Days, 1); <-. works fine with the etf

    AddDataSeries("VX", BarsPeriodType.Min, 60); <- obviously does not work without the contract period on a future

    Thanks!






    #2
    Hi, thanks for posting.

    The Merge Policy will control how contracts are stitched together. Use the latest contract month and the older contracts will automatically be used when appropriate.

    AddDataSeries("VX 11-21", BarsPeriodType.Min, 60);

    Comment


      #3
      Ok, that makes sense, thanks for pointing me into right direction

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      52 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      70 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X