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 bmartz, 03-12-2024, 06:12 AM
          4 responses
          32 views
          0 likes
          Last Post bmartz
          by bmartz
           
          Started by Aviram Y, Today, 05:29 AM
          4 responses
          12 views
          0 likes
          Last Post Aviram Y  
          Started by algospoke, 04-17-2024, 06:40 PM
          3 responses
          28 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by gentlebenthebear, Today, 01:30 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by cls71, Today, 04:45 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X