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 nicthe, Today, 02:58 PM
          1 response
          6 views
          0 likes
          Last Post nicthe
          by nicthe
           
          Started by percy3687, Yesterday, 12:28 AM
          3 responses
          30 views
          0 likes
          Last Post percy3687  
          Started by SilverSurfer1, Today, 01:33 PM
          0 responses
          9 views
          0 likes
          Last Post SilverSurfer1  
          Started by ETFVoyageur, Today, 10:27 AM
          2 responses
          18 views
          0 likes
          Last Post ETFVoyageur  
          Started by CommonWhale, Today, 01:12 PM
          0 responses
          10 views
          0 likes
          Last Post CommonWhale  
          Working...
          X