Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CategoryOrder Attribute doesn't work in Strategy Analyzer

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

    CategoryOrder Attribute doesn't work in Strategy Analyzer

    It looks like this attribute only works when applying an indicator or strategy in a chart. It doesn't work when running a strategy in the strategy analyzer. Clearly a bug.

    #2
    Hello,

    I tried a sample and can not confirm this in my sample, could you provide the sample you are using?

    Also are you using B8 that was recently release? if not could you update and check that this is still happening?

    This was the test I conducted, the same output was seen in both the Analyzer and the chart:

    Code:
    [Range(1, int.MaxValue), NinjaScriptProperty]
    [Display(Name = "Period2", GroupName = "NinjaScriptParameters", Order = 2)]
    public int Period2
    { get; set; }
    [Range(1, int.MaxValue), NinjaScriptProperty]
    		[Display(Name = "Period1", GroupName = "NinjaScriptParameters", Order = 1)]
    public int Period1
    { get; set; }
    [Range(1, int.MaxValue), NinjaScriptProperty]
    [Display(Name = "Period0", GroupName = "NinjaScriptParameters", Order = 0)]
    public int Period0
    { get; set; }

    I look forward to being of further assistance.

    Comment


      #3
      Hi Jesse,
      I'm talking about the attributes that are applied the the class that order the groups of properties.

      Code:
      [Gui.CategoryOrder("My Strings", 1)]  // display "My Strings" first
      [Gui.CategoryOrder("My Bools", 2)]  // then "My Bools"
      [Gui.CategoryOrder("My Ints", 3)]  // and finally "My Ints"
      public class MyCustomIndicator : Indicator
      {
         #region Properties   
       
         [Display(GroupName="My Ints")]
         public int MyCustomInt
         { get; set; }
         
         [Display(GroupName="My Bools")]
         public bool MyCustomBool
         { get; set; }
       
         [Display(GroupName="My Strings")]
         public string MyCustomString
         { get; set; }
       
         #endregion
      }

      Comment


        #4
        Hello,

        Thank you for providing a sample, I am able to see it using the same code you had used.

        I will report this item to development for further review.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        669 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        378 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X