Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart top labels

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

    Chart top labels

    Is there a way to turn off the labels and text at the top of the chart?

    Click image for larger version

Name:	ChartText.jpg
Views:	289
Size:	198.7 KB
ID:	1261427

    #2
    Go into each and every indicator’s Properties & delete entry in Label Field.
    If you don’t want it to display next time you add another instance of the Indicator, save the modified indicator as Default.

    There is a Feature Request for a Global Toggle Labels on/off function you could ask for your vote to be added to.

    However the request goes back to NT7, wasn’t addressed in NT8 and subsequent updates, has two gazillion votes and pops up here with great regularity so I’d just Save as Default on you go.

    As to who ever wants/wanted this ‘Feature’ populated by Default is one of the greater Ninja Dev unsolved mysteries!

    Best,

    Comment


      #3
      I use this in Ninjascrtipt to tame the Chart top labels:

      public override string DisplayName
      {
      get { return Name }
      }​


      Put this method after OnBarUpdate(). This method is called as an over-ride to get indicator or strategy name.

      If you wanted to include variables in the returned name you could use something like:

      get { return Name + "( Hello world ! show me you variables " + var01 + "," + var02 + "," + var03 + ")"; }

      Cheers!
      Last edited by rayko; 07-23-2023, 10:53 AM. Reason: typo

      Comment


        #4
        Go into each and every indicator’s Properties & delete entry in Label Field.
        Thanks but unfortunately this also hides the Strategy name in the in the Configured list.

        Click image for larger version

Name:	StrategyLabels.jpg
Views:	260
Size:	121.8 KB
ID:	1261502

        Comment


          #5
          Hello designer01,

          rayko is correct. Override the DisplayName method if you would like to display an empty string, while still showing the Name/Label in the Strategies window.


          (For open source system scripts you would need to make a copy to make this modification. The Order Flow+ indicators are not open source and cannot be copied / modified)

          There is an open request to show the name in the Strategies/Indicators window even when the label is blank, tracked with ID # SFT-4946, which I will add your vote to.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Hi ChelseaB,
            Where should I place the code snippets mentioned by rayko? Just below OnBarUpdate like so?

            Code:
            protected override void OnBarUpdate()
            {
                               public override string DisplayName
                               {
                                   get { return Name }
                               }​
            
                    //Add your custom strategy logic here.
            
                               get { return Name + "( Hello world ! show me you variables " + var01 + "," + var02 + "," + var03 + ")";
            }​
            Last edited by designer01; 07-24-2023, 11:24 AM.

            Comment


              #7
              Hello designer01,

              The DisplayName override is a method. In C# methods must be declared in the scope of the class.
              (Meaning between the curly braces of the class declaration and not between the curly braces of another method)
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                (Meaning between the curly braces of the class declaration and not between the curly braces of another method)
                I've tried this way but I get an error. Do you have a sample to go by? Thanks.

                Comment


                  #9
                  Hello designer01,

                  Attached is an example.

                  DisplayNameOverrideTest_NT8.zip
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    Chelsea
                    Is there a way to "Display" the name but in Brushes.Transparent?

                    Comment


                      #11
                      Hello Mindset,

                      If something is transparent, it isn't displayed. Just use an empty string to hide the text. Supply a string with the text when you want to show the text.

                      The color of all system added text on the chart is controlled by ChartControl.Properties.ChartText.
                      Chelsea B.NinjaTrader Customer Service

                      Comment


                        #12
                        I should have explained. I have buttons that turn indicators off and on - however they need the label so the top of my charts looks like a christmas tree with lots of text because it displays all the main parameters - hence I want a display name in Brushes .Transparent so I can call the indicator but it doesn't take up real estate.

                        Comment


                          #13
                          Hello Mindset,

                          Your button could look at the Name property, while the DisplayName override returns an empty string.

                          You can set all text on the chart to transparent. Right-click the chart -> select Properties -> expand Colors -> set Text to Transparent.
                          Chelsea B.NinjaTrader Customer Service

                          Comment


                            #14
                            Imho it is quite ridiculous that this issue descends into how to code a way around this. It is trading software, for traders. Who don’t want unnecessary clutter on their screens by default. And yet the offered solution is Users become a C# programmer to resolve it.
                            Lost the plot. By coders for coders.

                            Comment


                              #15
                              Originally posted by brucerobinson View Post
                              Imho it is quite ridiculous that this issue descends into how to code a way around this. It is trading software, for traders. Who don’t want unnecessary clutter on their screens by default. And yet the offered solution is Users become a C# programmer to resolve it.
                              Lost the plot. By coders for coders.
                              Totally agree - why do I need to know my Ema is Brushes.Orchid or whatever? Its useless information that takes up screen space.
                              It should be an option on every indicator/strategy that the DisplayName be visible or not
                              As you say If you trade screen estate is incredibly valuable and you shouldn't have to code to get it back from the indicator.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              108 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              55 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              37 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              38 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              75 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X