Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

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

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

  • NinjaTrader_MichaelM
    replied
    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.

    Leave a comment:


  • MercuryScripter
    replied
    Wonderful! Thank you very much Michael!

    Leave a comment:


  • MercuryScripter
    replied
    Originally posted by sledge View Post
    Thank you sledge! Just what I needed!

    Leave a comment:


  • sledge
    replied
    Check out this:


    Leave a comment:


  • MercuryScripter
    replied
    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.

    Leave a comment:


  • sledge
    replied
    In the property section of the indicator, there is a "LABEL".

    Leave a comment:


  • 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!

Latest Posts

Collapse

Topics Statistics Last Post
Started by jclose, Today, 09:37 PM
0 responses
4 views
0 likes
Last Post jclose
by jclose
 
Started by WeyldFalcon, 08-07-2020, 06:13 AM
10 responses
1,413 views
0 likes
Last Post Traderontheroad  
Started by firefoxforum12, Today, 08:53 PM
0 responses
9 views
0 likes
Last Post firefoxforum12  
Started by stafe, Today, 08:34 PM
0 responses
10 views
0 likes
Last Post stafe
by stafe
 
Started by sastrades, 01-31-2024, 10:19 PM
11 responses
169 views
0 likes
Last Post NinjaTrader_Manfred  
Working...
X