• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TypeConverter in Optimization

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

    TypeConverter in Optimization

    I am aware of the type converter sample, and have used portions of it to hide/show properties. My question is how can this be applied when in the optimizer? For example, if I have a bool property, I want to show other properties if it is set to True or Optimize.

    #2
    Hello aslane,

    Thank you for the post.

    I wanted to clarify, are you saying that currently the type converter is not working at all in just the optimization window or are you asking how to watch for both true/Optimize?

    Do you also have a sample of what you made that I can take a look at? It looks like our strategy sample in the help guide only contains the type converter but is not ready to test for this situation, if you have an existing sample that would be helpful so I don't need to recreate this over again.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      how to watch for both true/Optimize?
      Yes.

      I do not have simple example, but just create simple strat with bool that hides one other prop.

      Comment


        #4
        Hello aslane,

        Thank you for the reply.

        I will test this when I find time to recreate what you described and provide any information I uncover to development for review.

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          As far as I can tell, this does not work at all in the optimizer (works fine in Backtest). If triggering property starts out false, the other property is removed as expected. However, when you flip the boolean to True or Optimize, the second hidden property is not displayed. The triggering property does have the RefreshProperties attribute specified. I'll see if I can provide a basic example.

          Comment


            #6
            Attached is simple example that shows issue.
            Attached Files

            Comment


              #7
              Hello aslane,

              Thank you for the reply,

              I was able to form a sample earlier in the day and have already reported this. I will reply back here if I receive more details surrounding this situation.

              I look forward to being of further assistance.
              JesseNinjaTrader Customer Service

              Comment


                #8
                Hello aslane,

                I wanted to follow up as I received some further input from QA here. It looks like this is to be expected based on how the optimizer property grid works. In the situation where you have NinjaScriptProperty attribute applied to the property that will disable the custom type converter in this use case. To still utilize the type converter in the optimizer would require removing the NinjaScriptProperty attribute from that property specifically.

                A work around could be to make an extra bool property for the purpose of toggling the others, this property would not be optimized and is strictly to control the properties. The hiding works as long as the property which toggles is not an optimization property. I realize this would not cover all cases if you have more than one toggle that could be problematic. I will put in a feature request to expand this area.

                I look forward to being of further assistance.

                JesseNinjaTrader Customer Service

                Comment


                  #9
                  Thanks that makes sense. However, this does not really help in the general case as you explain. I already do use bools to enable the groups, but those bools need to be optimizable also.For example, you might have a group of items that can all be turned on/off together in different combinations. This is really an advanced item, but when building large frameworks, this is really required in order to increase the usability for the end user. Please add the feature request.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by lunardiplomacy, Today, 08:23 AM
                  4 responses
                  15 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by Gerik, Today, 06:36 AM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_Kate  
                  Started by swcooke, Yesterday, 03:31 PM
                  3 responses
                  27 views
                  0 likes
                  Last Post MojoJojo  
                  Started by swcooke, Yesterday, 04:29 PM
                  1 response
                  9 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by ttodua, Today, 06:51 AM
                  0 responses
                  6 views
                  0 likes
                  Last Post ttodua
                  by ttodua
                   
                  Working...
                  X