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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            181 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            334 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            258 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            358 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            187 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X