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 Taddypole, 04-26-2024, 02:47 PM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_Eduardo  
            Started by futtrader, 04-21-2024, 01:50 AM
            6 responses
            58 views
            0 likes
            Last Post futtrader  
            Started by sgordet, Today, 11:48 AM
            0 responses
            4 views
            0 likes
            Last Post sgordet
            by sgordet
             
            Started by Trader146, Today, 11:41 AM
            0 responses
            5 views
            0 likes
            Last Post Trader146  
            Started by jpapa, 04-23-2024, 07:22 AM
            2 responses
            22 views
            0 likes
            Last Post rene69851  
            Working...
            X