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.
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        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.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by tsantospinto, 04-12-2024, 07:04 PM
            5 responses
            67 views
            0 likes
            Last Post tsantospinto  
            Started by cre8able, Today, 03:20 PM
            0 responses
            6 views
            0 likes
            Last Post cre8able  
            Started by Fran888, 02-16-2024, 10:48 AM
            3 responses
            49 views
            0 likes
            Last Post Sam2515
            by Sam2515
             
            Started by martin70, 03-24-2023, 04:58 AM
            15 responses
            115 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by The_Sec, Today, 02:29 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X