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 Segwin, 05-07-2018, 02:15 PM
            14 responses
            1,789 views
            0 likes
            Last Post aligator  
            Started by Jimmyk, 01-26-2018, 05:19 AM
            6 responses
            837 views
            0 likes
            Last Post emuns
            by emuns
             
            Started by jxs_xrj, 01-12-2020, 09:49 AM
            6 responses
            3,293 views
            1 like
            Last Post jgualdronc  
            Started by Touch-Ups, Today, 10:36 AM
            0 responses
            13 views
            0 likes
            Last Post Touch-Ups  
            Started by geddyisodin, 04-25-2024, 05:20 AM
            11 responses
            63 views
            0 likes
            Last Post halgo_boulder  
            Working...
            X