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 NullPointStrategies, Today, 05:17 AM
      0 responses
      51 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      127 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X