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