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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X