Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Display Custom Message & Remove Strategy Name/Parameters From Chart Display

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

    Display Custom Message & Remove Strategy Name/Parameters From Chart Display

    Hello,

    When a strategy or indicator is applied to a chart, the strategy/indicator name and associated parameters are printed across the top of the chart.

    Does anyone know of a way to remove that display and print a fixed custom message instead?

    Thank you!

    #2
    In the property section of the indicator, there is a "LABEL".

    Comment


      #3
      Originally posted by sledge View Post
      In the property section of the indicator, there is a "LABEL".
      Hello sledge, thank you. I'm trying to do this in a strategy. I see what you mean by updating the "LABEL" property. However, I want the name of my strategy to show but not the assigned parameters. Or for example I just want my company name to display instead.

      This does not seem to be possible via the "LABEL" property inside the strategy or indicators parameters window.

      Would you kindly clarify a bit further how this may be accomplished inside ninja script? Thank you!
      Last edited by MercuryScripter; 05-17-2015, 07:25 PM.

      Comment


        #4
        Check out this:


        Comment


          #5
          Originally posted by sledge View Post
          Thank you sledge! Just what I needed!

          Comment


            #6
            Wonderful! Thank you very much Michael!

            Comment


              #7
              Hello MercuryScripter,

              To trim your indicator's label we need to override the ToString() method. If you want to display just the indicator name and your company name it would look something like this:

              Code:
              public override string ToString()
              {
              return Name + "MY COMPANY NAME";
              }
              This code would be placed after your
              Code:
              #region Variables
              #endregion
              and before your
              Code:
              #region Properties
              #endregion
              along with your other override methods (ex. Initialize(), OnBarUpdate(), etc.)

              If we can be of further assistance, please let us know.
              Michael M.NinjaTrader Quality Assurance

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by CarlTrading, Yesterday, 09:41 PM
              1 response
              28 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, Today, 02:41 AM
              0 responses
              10 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, Yesterday, 11:44 PM
              0 responses
              21 views
              1 like
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              37 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              34 views
              0 likes
              Last Post CarlTrading  
              Working...
              X