Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Overriding ToString doesn't work

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

    Overriding ToString doesn't work

    Hello,

    Overriding the ToString method in indicators and strategies is having no effect.

    Code:
    public override String ToString()
    {
    	return String.Empty;
    }
    The label with the name + parameters still appears on the upper left corner of the chartpanel.

    Thanks.

    #2
    Hello cls71,

    Thank you for your inquiry.

    Please note that in NinjaTrader 8, you will be overriding DisplayName to customize the label that is being written on the chart: http://ninjatrader.com/support/helpG...isplayname.htm

    To remove the indicator's name, you'd do this:
    Code:
    public override string DisplayName
    {
         get { return String.Empty; }
    }
    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by samir, Today, 07:00 PM
    0 responses
    9 views
    0 likes
    Last Post samir
    by samir
     
    Started by travisloneker, Today, 06:52 PM
    0 responses
    7 views
    0 likes
    Last Post travisloneker  
    Started by InfraredBusa, Today, 05:50 PM
    0 responses
    3 views
    0 likes
    Last Post InfraredBusa  
    Started by White Fork, Today, 04:56 PM
    1 response
    8 views
    0 likes
    Last Post White Fork  
    Started by steveyinyang, Today, 02:48 PM
    3 responses
    22 views
    0 likes
    Last Post steveyinyang  
    Working...
    X