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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            82 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            43 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            64 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            68 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            56 views
            0 likes
            Last Post CarlTrading  
            Working...
            X