Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to order groups in Strategies property window?

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

    How to order groups in Strategies property window?

    Hello,

    I have a number of user defined properties in my strategy and I have grouped them into different groups, see the example code below:

    Code:
    [NinjaScriptProperty]
    [Display(Name="Use key level stop", Order=11, GroupName="Stop loss configuration")]
    public bool Use_key_level_stop
    { get; set; }
    
    [NinjaScriptProperty]
    [Display(Name="Use VWAP?", Order=12, GroupName="Indicators")]
    public bool Use_vwap
     { get; set; }

    I am able to define the order of the various properties using the 'Order=X' parameter however the groups appear to be alphabetically ordered. Is there a way to order these groups based on my preference and not alphabetically i.e in the example below order the 'Indicators' group below the 'Stop loss configuration' group?


    Click image for larger version  Name:	image.png Views:	0 Size:	42.3 KB ID:	1264743

    #2
    Hello burtoninlondon,

    You can control the group order using CategoryOrder however strategies specifically have some limitations depending on the tool being used. In the analyzer/optimizer you may have different ordering due to how those tools work. In the control center or chart that should work as expected.


    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X