Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Hide label of indicator utilized in strategy?

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

    Hide label of indicator utilized in strategy?

    Hey Ninjatrader team,

    How do I hide the labels for indicators utilized in my strategy?

    I know that for indicators I manually add to my charts, I can remove the text in the 'Label' field within the indicator's settings.

    But how do I do this from within my strategy or indicator source code?

    #2
    Hello iantriestrading,

    Override the DisplayName method.

    Below is a link to the help guide with sample code.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      Is it not possible to override from within my strategy code? Seems like I can only override DisplayName from within each indicator's code.

      Comment


        #4
        Hello iantriestrading,

        If you are calling an indicator and adding this with AddChartIndicator() you can set the Name property to a blank string.

        myIndy = MyIndicatorName();
        myIndy.Name = string.Empty;
        AddChartIndicator(myIndy);
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hey Chelsea, thanks! Works perfectly

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          62 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          35 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          53 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          60 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          48 views
          0 likes
          Last Post CarlTrading  
          Working...
          X