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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 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
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X