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

Enum Typeconverter show/hide parameters in Strategy Analyzer Optimization

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

    Enum Typeconverter show/hide parameters in Strategy Analyzer Optimization

    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 have any pointers of what could be missing within my typerconverter?
    edit* the reason I don't see them at all is due to the option not = true, so flicking back to backtest and enable the option I see the available options in optimization but same issue as before the enums do not refresh, and do not show/hide the parameters based on true/false or optimise.

    Thanks
    Last edited by mr_trade; 04-27-2020, 10:04 AM.

    #2
    Hello mr_trade,

    I'm looking into this.

    I appreciate your patience.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello mr_trade,

      Thanks for your patience.

      We've created an example for you to test and work from with regards the selectable enums, and the show/hide parameters in the strategy analyzer optimize process.

      Please let us know if this resolves your query.


      EnumShowHidePropertiesTest.zip

      Paul H.NinjaTrader Customer Service

      Comment


        #4
        Thanks Paul! As simple as that perfect thankyou very much.

        Comment


          #5
          Hi PaulH,

          I have used the above example script and works fine, however if I want to optimise the enum by adding the [NinjaScriptProperty] to the enum parameter, how do the settings show/hide based on the selected enum using the tick box?

          Code:
          [NinjaScriptProperty]
            [RefreshProperties(RefreshProperties.All)]  
            public EnumShowHidePropertiesTestEnums.EnumsTest MyEnum
            { get; set; }
          is this possible?
          Thanks

          Comment


            #6
            Hello mr_trade,

            When optimizing over the enum, the parameters do not hide as it will be making combinations of with and without the enum.

            Below is the same script with [NinjaScriptProperty] added to the enum input.
            Attached Files
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by llanqui, Today, 03:53 AM
            0 responses
            6 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by burtoninlondon, Today, 12:38 AM
            0 responses
            10 views
            0 likes
            Last Post burtoninlondon  
            Started by AaronKoRn, Yesterday, 09:49 PM
            0 responses
            15 views
            0 likes
            Last Post AaronKoRn  
            Started by carnitron, Yesterday, 08:42 PM
            0 responses
            11 views
            0 likes
            Last Post carnitron  
            Started by strategist007, Yesterday, 07:51 PM
            0 responses
            14 views
            0 likes
            Last Post strategist007  
            Working...
            X