Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Organizing the Parameters in GUI

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

    Organizing the Parameters in GUI

    Hey guys. Is there a way to set the order of the parameter list when it appears in the GUI? It looks like it defaults to alphabetical, but with many parameters doing different things it's not very user friendly in this format.

    Also related, is it possible to have a parameter be dependent on another? That is, have a parameter which is a bool which only allows access to another parameter if it's set to true? This is all meant for in the GUI window when a user adds a strategy to a chart (or backtests).

    Thanks!

    #2
    Hello Locke,

    Thank you for your post.

    Hello Locke,

    Thank you for your note.

    Using [Gui.Design.DisplayName ("\tMyString")] in the properties you would add \t to the string, the more \t in the string the higher on the parameter list. An indicator that uses this can be found at the following link: http://www.ninjatrader.com/support/f...d=4&linkid=512

    To hide the parameters we would need to know the Control that we are accessing. This would be unsupported code but I will look into it further and follow up when I have further information.

    Comment


      #3
      Patrick thanks, this is exactly what I was looking for.

      I don't know what you mean by Control. Specifically, I have a 3 parameters called UseTimeConstraints, StartTime, and EndTime. It would be nice if I could have StartTime and EndTime (which are ints) not be shown, or even grayed out and just not accessible unless UseTimeConstraints is set to "true".

      This isn't a huge thing, just one of those would be nice things. But you really helped me with the ordering.

      Comment


        #4
        Hello Locke,

        I was way off, a user has kindly uploaded an indicator that already does this. You can find their indicator at the following link: http://www.ninjatrader.com/support/f...d=4&linkid=619

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        656 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        371 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        579 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X