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 trilliantrader, Yesterday, 03:01 PM
    3 responses
    30 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    4 responses
    26 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Brevo, Today, 01:45 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by rjbtrade1, 11-30-2023, 04:38 PM
    2 responses
    74 views
    0 likes
    Last Post DavidHP
    by DavidHP
     
    Started by suroot, 04-10-2017, 02:18 AM
    5 responses
    3,022 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X