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

Display setting in the strategy analyzer

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

    Display setting in the strategy analyzer

    When I run my strategy in the strategy anlyzer, i just noticed that if that parameter didnt include the NinjaScriptProperty, then it wont show in the display setting.

    However, some of the parameter I will used in the typeconverter to make some different dropdown happens for optimization.
    Therefore, I will unable the NinjaScriptProperty.

    But I need to see it at the Display setting there.
    Just curios is that other way to make this case happens ???

    #2
    This is the example of the needs NinjaScriptProperty only enable the display setting.
    Attached Files

    Comment


      #3
      I think below picture will be more clear.

      Together I attach 1 file which is given my ninjatrader customer service here also.
      Attached Files

      Comment


        #4
        Hello cincai,

        I'm not certain I am understanding what the issue is.

        While MyEnum is set to Value1 the Toggle values #1 and #2 can be optimized over.

        Below is a link to a video of the test.
        https://drive.google.com/file/d/1ucX...w?usp=drivesdk

        NinjaScriptProperty must be used to optimize over a value.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          NinjaTrader_ChelseaB

          Have you see the picture ??

          The MyEnum is not show in the display(setting)

          Comment


            #6
            Please see this picture
            Attached Files

            Comment


              #7
              I was thinking is it the bug of the system ??

              Or

              Do it have other way to show it ??

              I know it is depend on the [NinjaScriptProperty], however due to typeconverter, we cannot called the [NinjaScriptProperty] for that MyEnum to work.
              But, I would like to see the display(setting) to know all my parameter that I used.

              Comment


                #8
                Hello cincai,

                [NinjaScriptProperty] attribute would be required to make the property optimizable and to display it in the Strategy Parameters grid in the Settings Display.

                This will make the property look differently in the property grid for the Strategy Analyzer because the Strategy Analyzer modifies how we interact with properties that are optimizable. With a quick test adapting SampleIndicatorTypeConverter to a strategy and adding [NinjaScriptProperty] on the Friendly Enum property, we can see that the property becomes optimizable in the Strategy Analyzer, but we have our friendly controls in the regular strategy property grid like we would see in a Strategies Dialog window or outside of optimizations.

                Could you elaborate on your use case for using the typeconverter for optimizations specifically? You should be using NinjaScriptProperty attribute for optimizable properties as this would be required to get the optimizable controls and to get the property listed. User friendly property grid modifications would be used then outside of optimizations.

                We look forward to assisting.
                Attached Files
                JimNinjaTrader Customer Service

                Comment


                  #9
                  I want myEnum to be work as the typeconvert.
                  In your picture, the other variable likes toogle 1,2.... will not show up when myEnum to be choosen.

                  To make this work, we cannot declare [NinjaScriptProperty] in the myEnum

                  Without [NinjaScriptProperty], the name of the myEnum and its value will not be shown up in the display setting.
                  ** Just use your eye and see the display(setting) in strategy analyzer

                  Therefore, I was asking help.
                  Is that any way to make the type converter to be work and will be seeing its name and value in the display(setting) ---strategy analyzer.
                  Or
                  it is a bug for the system ??

                  Comment


                    #10
                    I do not want myEnum to be optimized as it cannot be type converter.

                    Comment


                      #11
                      From your picture (display setting), where is the parameter name under use case #1, use case #2, use case #3 and use case #5.

                      You see that, only the parameter "Friendly Enum" show up, where is the others ??
                      ** CAN YOU NOW SEE MY QUESTION ??

                      Comment


                        #12
                        Hello cincai,

                        I had not seen the attached example which helps. Thanks also for clarifying.

                        I have attached a modification that you could try which adds another property which the type converter removes. This appears that it can work for your need.

                        Let us know if there is anything else we can do to help.
                        Attached Files
                        JimNinjaTrader Customer Service

                        Comment


                          #13
                          Ok, I will tried it on my side.

                          If it was not what I want, I will let you know.

                          Comment


                            #14
                            Same thing happens,
                            you are the one who do not understand what I trying to let you know.

                            I am not asking ninjatrader customer sericeve to help me do a free indicator / strategy.
                            I was suspecting this was the BUG of the system that you all not aware of it.

                            Please see the picture below.
                            i choose MyEnum as "Value2", then see the display setting there, Why other variable like "Toggle value #1", "Toggle value #2" and "Enum used" was display to me.
                            I did not fill that value right.

                            At the same time, where is the "MyEnum" show in the display setting there ??
                            Under strategy parameter, there is no "MyEnum".

                            You get it ?
                            I was explaining this to you guys at the earlier of the discussion.
                            But you all still do not get it and keep saying to other subject
                            Attached Files

                            Comment


                              #15
                              The purpose of Display(setting) is to let the user to know what parameter they are used in the strategy analyzer when undergo testing.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Shansen, 08-30-2019, 10:18 PM
                              24 responses
                              942 views
                              0 likes
                              Last Post spwizard  
                              Started by Max238, Today, 01:28 AM
                              0 responses
                              9 views
                              0 likes
                              Last Post Max238
                              by Max238
                               
                              Started by rocketman7, Today, 01:00 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post rocketman7  
                              Started by wzgy0920, 04-20-2024, 06:09 PM
                              2 responses
                              28 views
                              0 likes
                              Last Post wzgy0920  
                              Started by wzgy0920, 02-22-2024, 01:11 AM
                              5 responses
                              33 views
                              0 likes
                              Last Post wzgy0920  
                              Working...
                              X