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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      428 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      279 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      241 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      327 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      290 views
      0 likes
      Last Post CarlTrading  
      Working...
      X