Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Walk Forward Analysis over contract roll

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

    Walk Forward Analysis over contract roll

    Morning,

    What is the best way to preform a WFA over several year of 3 month contracts? How can i prevent the strategy holding a position over a contract roll?

    #2
    GKonheiser, would your script hold overnight? NT7 would automatically roll for you with the merging enabled (which would per default). It has rollover dates stored and transparently merges then past historical data into your current contrat's data request. An alternative would be using the ##-## contracts where the rollovers are defined server side by the provider and so one continuous contract is offered.

    Comment


      #3
      Hi Bertrand,

      Yes my strategy has overnights. So when would it roll by default, the last day? How does it handle the stops then if there is a big difference in the price?

      Thanks

      Comment


        #4
        Thanks GKonheiser - it would not automatically roll your position / execute on another frontmonth as the you will work from the current expiry but just get historical data merged in when you data request goes over the limits provided by the contract. The rolldates set per default can all be reviewed under Tools > Instrument Manager > in the Edit > Misc section for each master instrument. For equity futures those will coincide with the CME published ones.

        Comment


          #5
          Bertrand what happens if I have merge policy set to do not merge and I do a WFA over several contracts with say 100 days in sample and 30 days out of sample, how will it be handled. What will the analyser do with positions that are open at the end of a contract?

          Comment


            #6
            With the merge option set to do not merge > you do not have the ability to walk forward over the individual contract boundaries, the open position at the end of the data set then would be closed as the backtesting is finished. Same as you would see for regular testing in the Strategy Analyzer.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            69 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            42 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            24 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            27 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            54 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X