• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator names on chart

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

    indicator names on chart

    Hi,

    can we get rid of this?
    https://www.screencast.com/t/coXrHFEYjo

    #2
    Hello td_910,

    Thank you for the post.

    The DisplayName property can be overridden in your script to customize the label on the chart.

    To remove it from the user interface, go into the data series menu and delete the "Label" field.

    Please let me know if I can assist further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChrisL View Post
      Hello td_910,

      Thank you for the post.

      The DisplayName property can be overridden in your script to customize the label on the chart.

      To remove it from the user interface, go into the data series menu and delete the "Label" field.

      Please let me know if I can assist further.
      Hello Chris,

      thanks for the reply. The problem with this is, that the indicator name then also disappears from the list of the configured indicators.
      at least in NT8

      NT8 https://www.screencast.com/t/Nz33iCGjs
      NT7 https://www.screencast.com/t/l479XHwd7

      Comment


        #4
        Hello td_910,

        Thank you for your reply.

        The Name property will control the display name in the indicator property panel. Overriding the DisplayName will only change the Label on the chart. Make sure you are running the latest version of NinjaTrader (Help>About). The latest version is 8.0.17.0. If you are not on this version, please update from this link.

        After confirming your version, be sure to compile, remove, and re-add the indicator to your chart. I have also attached a test script that works on my installation. The name in the indicators list is "MyCustomName". Place the file within ..\Documents\NinjaTrader 7\bin\Custom\Indicator then compile.

        I look forward to hearing of your results.
        Attached Files
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          I upgraded to the latest version. https://www.screencast.com/t/ceFnQy7kGEnn


          This is the code I use for the DisplayName

          public override string DisplayName
          {
          get
          {
          string indicatorVariables = "";
          if (showLast200) indicatorVariables = "(Last 200) ";

          if (showAlert) indicatorVariables = indicatorVariables + "(Alert) ";
          else indicatorVariables = indicatorVariables + "(No Alert) ";

          indicatorVariables = indicatorVariables + " " + xTF.ToString("N0")+"tF ";

          if (showEBOnly) indicatorVariables = indicatorVariables + "EBonly ";

          if (showPriorBar) indicatorVariables = indicatorVariables + "Prior ";

          return Name + " " + indicatorVariables;
          }
          }

          It seems to change the Name in the name in the indicators list as well.
          What I basically want is nothing on the chart and a name in the indicator list, that has the configured variables for the indicator.



          Originally posted by NinjaTrader_ChrisL View Post
          Hello td_910,

          Thank you for your reply.

          The Name property will control the display name in the indicator property panel. Overriding the DisplayName will only change the Label on the chart. Make sure you are running the latest version of NinjaTrader (Help>About). The latest version is 8.0.17.0. If you are not on this version, please update from this link.

          After confirming your version, be sure to compile, remove, and re-add the indicator to your chart. I have also attached a test script that works on my installation. The name in the indicators list is "MyCustomName". Place the file within ..\Documents\NinjaTrader 7\bin\Custom\Indicator then compile.

          I look forward to hearing of your results.

          Comment


            #6
            Originally posted by td_910 View Post

            ... The problem with this is, that the indicator name then also disappears from the list of the configured indicators.
            at least in NT8
            I just went thru the same label problem myself, here is how you do it

            1) blank out the name
            else if (State == State.DataLoaded)
            {
            Name = ""; //blank out the name
            Indicator = new Series<double>(this, MaximumBarsLookBack.Infinite);
            }
            2) display text as name
            ///test /////////////////////

            DrawOnPricePanel = false;
            Draw.TextFixed(this, "textasname", "TickDivergence", TextPosition.TopLeft);
            DrawOnPricePanel = true;
            ///test/////////////////////

            result as in picture Click image for larger version

Name:	label.png
Views:	4
Size:	18.9 KB
ID:	1047212
            Attached Files

            Comment


              #7
              Hello td_910,

              Thanks for the reply.

              If you use Name within the DisplayName "get" override and make the Name blank, that will cause the display name to be blank as well. The Name property Will determine the name in the property grid and the DisplayName will represent the label added to the chart.

              Please let me know if I can assist further
              Chris L.NinjaTrader Customer Service

              Comment


                #8
                solved :-)
                full name in indicator list and one small label on the chart

                https://www.screencast.com/t/hvTIuC2s67b

                Comment


                  #9
                  Take a look at this post. I solved this issue.

                  https://ninjatrader.com/support/foru...78-hide-labels

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Atilla, Today, 04:05 PM
                  0 responses
                  10 views
                  0 likes
                  Last Post Atilla
                  by Atilla
                   
                  Started by Displacer, Today, 02:57 PM
                  2 responses
                  13 views
                  0 likes
                  Last Post Displacer  
                  Started by SAILIKITY, 05-22-2019, 05:41 PM
                  1 response
                  9 views
                  0 likes
                  Last Post NinjaTrader_PaulH  
                  Started by rmillar, 01-09-2019, 06:02 PM
                  6 responses
                  71 views
                  1 like
                  Last Post eDanny
                  by eDanny
                   
                  Started by mlarocco, Today, 11:39 AM
                  4 responses
                  23 views
                  0 likes
                  Last Post mlarocco  
                  Working...
                  X