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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      72 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      39 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X