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

Unsupported - How to Dynamically Enable or Disable Input Parameters

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

    Unsupported - How to Dynamically Enable or Disable Input Parameters

    Hi,

    I've seen an indicator where selecting the value of a certain input parameter can either enable or disable another parameter, or even a set of parameters. By enable/disable I mean that they dynamically disappear or re-appear in the list of input parameters.

    Does anyone know of an example of how this is done? I haven't so far been able to find an example in the forum, but I know that it can be done.

    Thanks,
    Will.

    #2
    I don't have a solution for you but that's got to be a neat trick because I know I have had to Reload indicators on many occasions to get newly coded inputs to show up. Its above my pay grade.

    Jerry

    Comment


      #3
      look here:
      wh hi, I didn't understand what your code is supposed to do but I don't think that it answers my request. What I want is like in zigzag indicator when you change the "use high and low" from true to false new property "price type" appears. Or like in "set order quantity" by changing from "by strategy" to "by default quantity". Thanks, Baruch try this public enum MMType { Fix_Percent, Kelly_F } in Vars private MMType mmtype; in Properties [Description("Money …

      Comment


        #4
        thanks a lot for that, I haven't implemented it yet but I got the test program and it works just the way I want.

        Will.

        Comment


          #5
          You're welcome,
          I use it all the time in strategies.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by geddyisodin, Today, 05:20 AM
          5 responses
          32 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by bmartz, Today, 09:30 AM
          2 responses
          12 views
          0 likes
          Last Post bltdavid  
          Started by f.saeidi, Today, 11:02 AM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by geotrades1, Today, 10:02 AM
          4 responses
          12 views
          0 likes
          Last Post geotrades1  
          Started by rajendrasubedi2023, Today, 09:50 AM
          3 responses
          16 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X