Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8B10: strategy.SystemPerformance.* Missing from Optimization Fitness execution

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

    NT8B10: strategy.SystemPerformance.* Missing from Optimization Fitness execution

    Hello,

    I`m trying to convert an Optimization Fitness from nt7 and found that "strategy.SystemPerformance.AllTrades" TradesCollection is EMPTY and not populated when I try to access it from within an Optimization Fitness script.

    I`ve uploaded a screen print of an optimization of "Sample MA crossover". I`ve also uploaded an exported Optimization Fitness script the prints "Total number of All Trades, Total Winning Trades, and Total Loosing Trades.

    Notice on the screen capture the Output window shows all Wins=0 and Losers=0 while the SA window shows the correct values.

    Can you pls test this at your end and fix it in the next beta release.

    Thank you
    Attached Files

    #2
    Hello rayko,

    Thank you for your post.

    I tested both your code and my own to find that the results matched what the Strategy Analyzer reported.
    Attached is a screenshot showing your output and my own matching the Strategy Analyzer.

    Please try a restart of NinjaTrader 8 and run the Strategy Analyzer with no other open windows in any workspaces loaded and advise if the incorrect values (or lack of any values) still occurs.

    My code is attached as well.
    Attached Files

    Comment


      #3
      Hello Patrick,

      When I run your Test1502189 fitness, I get all zeros.

      I did as you asked. Restarted NT8, with no other workspaces open. The only open workspace was "untitled1" and I was connected to Kinetic.

      Here is a screen print of what I got. I tested using an SA of YM ##-##.
      Attached Files

      Comment


        #4
        Hello rayko,

        Thank you for your response.

        May we request a support call with you to look into this on your PC?

        If so, please send a note to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H - 1502189' in the subject line. We will need a time frame that you would be available and a phone number we may reach you at. Our normal support hours for calls are between 8:30 AM to 6 PM ET.

        Comment


          #5
          Hello Patrick,

          I have sent the email.

          Thank you.

          Comment


            #6
            Hello Patrick,

            I had to reboot my machine after lunch and now the same problem is back again.

            It would seem that the reinstall of NT8 fix, doesn`t stick following a reboot.

            I`ve uploaded a screen print of Output windows following an optimization. I then opened one of the optimization iterations onto a separate tab and ran it again as standalone.

            You can see that when a strategy is run standalone following an optimization, then System Performance values are not empty.

            Not sure why or what to try next.

            Can you please let me know ?
            Attached Files
            Last edited by rayko; 04-20-2016, 10:30 AM.

            Comment


              #7
              rayko,

              I will try those steps on my end to try to reproduce.

              Comment


                #8
                Hello rayko,
                Originally posted by rayko View Post
                I then opened one of the optimization iterations onto a separate tab and ran it again as standalone.

                You can see that when a strategy is run standalone following an optimization, then System Performance values are not empty.
                In testing I am having a bit of trouble recreating these steps here. Can you clarify or provide a step by step process of how you are taking one set of settings and running it standalone?

                Comment


                  #9
                  Sure no problem.

                  First run an SA Optimization with SampleMAcrossover like what is shown in SysPer Pic01. Notice the print output from Test1502189 is all zero.

                  Next, right-click on any one of the optimization iterations. I selected the second one with net profit -$6,160.00 and select "Open in Strategy Analyzer Tab".

                  Next, on the newly created tab, click the run button. Notice how the output window now shows the correct values printed by optimizer fitness Test1502189, shown in SysPer Pic02.
                  Attached Files

                  Comment


                    #10
                    Hello Patrick,

                    Do you had any update on this.

                    I was thinking that its likely something wrong with how the Optimizer Fitness is being executed while the strategy is run in Standard Backtest mode and not optimization.

                    I would think that while a strategy is run in backtest mode, optimization fitness would NOT be executed.

                    Yet, in optimization mode the values are always zero.

                    Pls let me know.

                    Thank you

                    Comment


                      #11
                      rayko,

                      Thank you for your patience.

                      We have tried this out a few machines but the results return correctly. I would like to ask what operating system you are running and whether you see this in the 64 bit and the 32 bit versions of NinjaTrader 8 as this will help us in re-creating this matter.

                      Comment


                        #12
                        Hello,

                        I`m using Windows 10 Pro 64bit, see attached system info.

                        The problem exists while using both the 32bit and 64bit versions.

                        If you need to, I don`t mind if you need to remote link to my machine again for more info.

                        Thank you
                        Attached Files
                        Last edited by rayko; 04-29-2016, 01:28 PM.

                        Comment


                          #13
                          Hello rayko,

                          Thank you for the additional information.

                          This should be all we need for now.

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by bortz, 11-06-2023, 08:04 AM
                          47 responses
                          1,602 views
                          0 likes
                          Last Post aligator  
                          Started by jaybedreamin, Today, 05:56 PM
                          0 responses
                          8 views
                          0 likes
                          Last Post jaybedreamin  
                          Started by DJ888, 04-16-2024, 06:09 PM
                          6 responses
                          18 views
                          0 likes
                          Last Post DJ888
                          by DJ888
                           
                          Started by Jon17, Today, 04:33 PM
                          0 responses
                          4 views
                          0 likes
                          Last Post Jon17
                          by Jon17
                           
                          Started by Javierw.ok, Today, 04:12 PM
                          0 responses
                          12 views
                          0 likes
                          Last Post Javierw.ok  
                          Working...
                          X