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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          62 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          134 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X