Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

small bug in Property sorting

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

    small bug in Property sorting

    Hello,

    there is a wrong sorting of the parameters in the Parameters column of a strategy tab.
    These parameters are sorted by Property.Name and are NOT sorted by the Property.Attribute.Displayname.
    The sorting should be the same as in a PropertyGrid, and in the grid sorting is by Property.Attribute.Displayname.

    Example: SampleMACrossOver2.

    By adding the DisplayName attribute the

    [Description("Period for slow MA")]
    [Gui.Design.DisplayName(
    "\rSlow")]
    [GridCategory(
    "Parameters")]
    publicint Slow
    {
    get { return slow; }
    set { slow = Math.Max(1, value); }
    }

    the "Slow" parameter is displayed first (because "\r" is lower than "S".


    In the strategy tab Parameters column however the sort order is different.

    Please fix

    thank you


    Attached Files

    #2
    Somewehere in the NT7 docs/release notes you should find that the DisplayName concept no longer is support

    Comment


      #3
      @ Dierk,

      your thread reference refers to the DisplayName concept that was used to define the DisplayName of an Indicator in the Add Indicators Form.
      This has been abandonded as you state correctly.

      I refer to the DisplayName concept used of a Property of something (indicator, strategy, column).

      There the DisplayName is still valid and you use it extensively in your own code.

      my post #1 applies to this situation

      regards

      andreas

      Comment


        #4
        Andreas,

        This could be the case. Unfortunately DisplayName is simply not supported anywhere.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Great that this sorting is back in NTb16 :-) All indicator parameters looked messed up in b15 now at least where legacy compatible and can order the parameters and not be at the disgrace of some sorting algorithm than removes any logic ordering :-)
          I was rather annoyed by this being removed as there was no alternative put back in place.

          Great that you guys put that back in NT7b16, hope it stays

          Wessel
          Last edited by Wessel; 06-09-2010, 03:06 AM.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by akuntysh, 05-18-2018, 03:39 AM
          12 responses
          820 views
          0 likes
          Last Post cedavra
          by cedavra
           
          Started by Uregon, Today, 03:44 AM
          0 responses
          2 views
          0 likes
          Last Post Uregon
          by Uregon
           
          Started by CyberNate, 11-17-2020, 08:15 PM
          2 responses
          426 views
          0 likes
          Last Post nurpalgo  
          Started by sdauteuil, 09-23-2021, 10:16 AM
          7 responses
          1,247 views
          0 likes
          Last Post marcus2300  
          Started by sofortune, 05-18-2024, 11:48 AM
          2 responses
          34 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X