Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Group Order Attribute for strategy user interface

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

    Group Order Attribute for strategy user interface

    I've read the library but its vague on the placement of the order attribute.

    https://ninjatrader.com/support/help...ryorderattribu te.htm

    Objective: Organize the Strategy User Interface by ordering different parameters as usual & then organizing these groups in an order other than the default.
    And yes, I did see they warn its not supported...

    Example:

    "Base Parameters"

    Item 1
    Item 2
    Item 3

    "Targets & Stops"

    Item 1
    Item 2
    Item 3

    "Indicator Settings"

    Item 1
    Item 2
    Item 3

    I am of course referring here to the Properties section:


    region Properties

    [NinjaScriptProperty]
    [Range(1, int.MaxValue)]
    [Display(Name="Contracts", Description="Contracts Placed", Order=1, GroupName="Base Parameters") ]
    public int Contracts
    { get; set; }​

    #2
    Hello johnMoss,

    Are you referring to the CategoryOrder attribute?


    This attribute is applied to the class and can placed one line above the class declaration.

    The help guide page has a code sample. I've adapted this to your category names.

    [Gui.CategoryOrder("Base Parameters", 1)] // display "My Strings" first
    [Gui.CategoryOrder("Targets & Stops", 2)] // then "My Bools"
    [Gui.CategoryOrder("Indicator Settings", 3)] // and finally "My Ints"
    public class MyCustomIndicator : Indicator
    {
    }​
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chelsea,
      Yeah the library links have changed & hence there exist a lot of either dead links or non-specific relevant copy when doing general internet search. The link you just gave is the good one.
      Gracias

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X