Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Parameter show up based on condition in strategy analyzer (Optimization)

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

    Parameter show up based on condition in strategy analyzer (Optimization)

    Currently, I was undergo some backtesting for optimization.

    However, is it all the parameter have to be show up ??

    Can i like make the slow parameter to be disappear ??
    Attached Files

    #2
    Or should it be every parameter have to be show up ???

    Comment


      #3
      Hello Nick123,

      Thank you for your posts.

      Any parameters that the user can set at run time would show up in the Strategy Analyzer generally. However, this example from a different thread demonstrates showing and hiding properties based on an Enum selection that will work in the Optimizer:

      Hi All, I have created some typeconverters and they successfully add/remove parameters based on the enum selection when adding strategy to the chart or within backtesting in strategy analyser, however under optimization I only see the parameters for default selected enum, and in some cases I don't see anything at all. Do you


      Please let us know if we may be of further assistance to you.
      Kate W.NinjaTrader Customer Service

      Comment


        #4
        This is not what I looking for.
        I mean when optimization during backtesting.

        The data still show up even I tick "Value2"
        Below is the picture.

        It do not hide.
        Attached Files

        Comment


          #5
          I mean the
          Toogle value # 1 and Toogle value # 2 still show up

          Comment


            #6
            Hello Nick123,

            Thank you for your reply.

            I'm not seeing the same on my end when I test with an optimization - I see a dropdown with the enum selections and when they are changed the toggle values disappear and reappear depending on which enum was chosen.

            What version of the platform are you using? You can find this under Help > About. The current version is 8.0.24.2.

            Thanks in advance; I look forward to assisting you further.
            Kate W.NinjaTrader Customer Service

            Comment


              #7
              8.0.24.1 64-bit

              Comment


                #8
                I have download the new vserion. And it also the same problem.

                Only work for backtesting type "BackTest".
                Still cannot work for backtesting type = " Optimization"

                Comment


                  #9
                  I recording my screen here.
                  https://drive.google.com/file/d/1oNm...ew?usp=sharing

                  Even the video I tick both Value 1 and Value 2.
                  However, I have tried on my side with ticking only value2 , it still didn't work.

                  Any way to solve?
                  Last edited by Nick123; 04-28-2021, 08:59 AM.

                  Comment


                    #10
                    Hello Nick123,

                    Thank you for your replies.

                    I believe you downloaded the second version of the script, not the first version - the first uses a dropdown while the second uses checkboxes. Try installing this version instead.
                    Attached Files
                    Kate W.NinjaTrader Customer Service

                    Comment


                      #11
                      Thanks for fast reply.
                      Now it work.

                      However, I have another question.
                      In previous version, why there is a tick option for "myEum"

                      while in the new one, it become dropdown.
                      Can i know where is the trick ??

                      Comment


                        #12
                        Hello Nick123,

                        Thank you for your reply.

                        The difference is that in the other version myEnum has the NinjaScriptProperty attribute applied, making the enum a parameter, which then shows those checkboxes in the UI:



                        Please let us know if we may be of further assistance to you.
                        Kate W.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by love2code2trade, Yesterday, 01:45 PM
                        4 responses
                        28 views
                        0 likes
                        Last Post love2code2trade  
                        Started by funk10101, Today, 09:43 PM
                        0 responses
                        7 views
                        0 likes
                        Last Post funk10101  
                        Started by pkefal, 04-11-2024, 07:39 AM
                        11 responses
                        37 views
                        0 likes
                        Last Post jeronymite  
                        Started by bill2023, Yesterday, 08:51 AM
                        8 responses
                        44 views
                        0 likes
                        Last Post bill2023  
                        Started by yertle, Today, 08:38 AM
                        6 responses
                        26 views
                        0 likes
                        Last Post ryjoga
                        by ryjoga
                         
                        Working...
                        X