Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exclude weekend from walk forward optimization (NT7R2)

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

    Exclude weekend from walk forward optimization (NT7R2)

    Altough I use a template which exclude saturday and sunday , the walk forward clearly include these days.
    Is this a bug or am I missing something?

    Thanks,
    Hatori
    Attached Files

    #2
    Hello Hatori,

    Unfortunately this is as expected because it is the only way to include full trading session as defined by the session template.

    When using session templates that are 24 hrs with times cross multiple days, it is expected that tests in the Strategy Analyzer will include trades from the date before and the date after. This is because those dates are required to get the full trading session as defined by the session template.

    Please be aware of the following limitation during walk forward tests. Each walk forward period may double count trades on “transition” dates. For example:
    • First period is 1/29 to 2/25. Second period is 2/26 to 3/25.
    • First period counts trades from 1/28 to 2/26.
    • Second period counts trades from 2/25 to 3/26.
    • There is an overlap of two days of 2/25 and 2/26 being double counted between each walk forward period.
    JasonNinjaTrader Customer Service

    Comment


      #3
      The session template I use do not cross multiple days , so if I understand right ninja do no capable of exclude weekend no matter what ,altough I do not know why , it seems a very basic feature.

      Hatori

      Comment


        #4
        What time zone is used for the session template and what time zone is used for your PC clock?
        JasonNinjaTrader Customer Service

        Comment


          #5
          Both are in the same timezone GMT+1.
          There are no overlapping days here which you described earlier but both, the optimization and the walkforward use the weekdays just like normal trading days.

          Comment


            #6
            I see. I performed an optimization on my end using the same session template you created. My PC clock is set to US Mountain time - I set the session template to Mountain time as well.

            Subsequently I optimized the SampleMACrossOver strategy, however I did not see any trades that occurred during the weekend.

            Can you please provide me a reproducible scenario that results in trades during the weekend.

            Are you able to reproduce the issue using the SampleMACrossOver strategy?
            Attached Files
            JasonNinjaTrader Customer Service

            Comment


              #7
              Let's see this settings for example.
              What are saturday and sunday doing in the optimization period?
              The optimization period is 4 day , but this way it will be only 2 ,
              the same problem exists at the walk forward part , the out of sample period (which would be 2 days) is sometimes 1 day (friday and saturday , or sunday and monday) and sometimes 0 day (saturday and sunday).

              So my question is the same: Why ninja does not exclude the weekend days from the test. (from the optimization periods and from the walk forward/out of sample periods)?
              Attached Files

              Comment


                #8
                hatori,

                Please provide exact session template definitions. Thank you.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Hello Josh,

                  My session template is in my first post (second picture) The time zone are GMT+1 both on my PC and in that session template.

                  Hatori

                  Comment


                    #10
                    Unfortunately the dates will be listed in the Optimizer and Walk forward-tabs. However if you select a row that includes weekend days and you subsequently select the Trades-tab, you should not see any trades listed on a weekend date.

                    Can you please check if you see any trades as per a weekend date upon selecting the Trades-tab once you select a row in the Optimizer or Walk forward tab.
                    JasonNinjaTrader Customer Service

                    Comment


                      #11
                      My point is that this ninja walk forward is not going by the book.

                      If I run a 4/2 walkforward for example , the optimization period will be 4,3 or 2 days , and the out of sample test days will be 2 , 1 or 0 day over time.

                      The end result will be some kind of strange pseudo value.

                      Regards,
                      Hatori

                      Comment


                        #12
                        I see, I will forward your inquiry to development to exclude days in the Optimizer and Walk forward-tabs when such days are excluded from the session template that is used.
                        JasonNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by WHICKED, Today, 12:56 PM
                        1 response
                        8 views
                        0 likes
                        Last Post NinjaTrader_Gaby  
                        Started by cre8able, Today, 01:16 PM
                        0 responses
                        1 view
                        0 likes
                        Last Post cre8able  
                        Started by chbruno, 04-24-2024, 04:10 PM
                        2 responses
                        47 views
                        0 likes
                        Last Post chbruno
                        by chbruno
                         
                        Started by WHICKED, Today, 12:45 PM
                        1 response
                        11 views
                        0 likes
                        Last Post NinjaTrader_Gaby  
                        Started by samish18, Today, 01:01 PM
                        0 responses
                        5 views
                        0 likes
                        Last Post samish18  
                        Working...
                        X