Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Gui.Design.DisplayName not working in NT7?

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

    Gui.Design.DisplayName not working in NT7?

    I just noticed that none of the indicators in my Indicators Window are displaying their "Gui.Design.DisplayName" value...instead they're showing up with their class name.

    Is this code no longer supported, or is this a bug?

    ...
    [Gui.Design.DisplayName(@"Sample Indicator v2.0")]
    public class SampleIndicator : Indicator

    ...

    Thanks for your help,

    Ben

    #2
    Ben,

    Off the top of my head I believe this has been changed to just "Name".
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      ...I've tested "Name"...but it does not compile.

      Can you supply the full syntax of what the statement should be? Perhaps I've got it incorrect.

      Comment


        #4
        Code:
        private override void Initialize()
        {
             Name = "Something";
        }
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Label Name syntax

          Hello,
          Is there a way to blank out the Label Name in the user interface within the code?
          ie not hightlight/delete the field in the UI.
          Thanks,
          kz

          Comment


            #6
            zeller4, if I understand your question correctly, yes it is possible to blank out the name. Please see this reference sample for the how. Basically, if you want no label at all, the code (placed on the same level as OnBarUpdate()) would look like this:
            Code:
            public override string ToString()
            {
                 return "";
            }
            AustinNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            597 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            555 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X