Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can a strategy name and parameter settings be removed in a chart's upper left corner?

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

    Can a strategy name and parameter settings be removed in a chart's upper left corner?

    Hello,

    By erasing an indicator's label in the indicator's setting the name and settings of that indicator do not display in the chart's upper left corner. Is there a way to do this for a loaded strategy too? I am trying to prevent the strategy's name and parameter settings from displaying on the chart as well.

    Thank you for any help

    #2
    Hello 9817_dynamic,

    Thank you for the post.

    Strategies also have a Label property which can be set to a blank string the same as the indicators would have.

    This only sets the strategies label though, it will still show the indicator labels if it uses AddChartIndicator. If you also want to control added indicators you would need to do that in the strategies code. A simple example would be if we take a look at the SampleMACrossOver:

    Code:
    else if (State == State.DataLoaded)
    {
       smaFast = SMA(Fast);
       smaSlow = SMA(Slow);
    [B]   smaFast.Name = "";
       smaSlow.Name = ""[/B];
    
    
       AddChartIndicator(smaFast);
       AddChartIndicator(smaSlow);

    I look forward to being of further assistance.

    Comment


      #3
      Sweet. Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X