Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

changing label for ind added by strat

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

    changing label for ind added by strat

    you can change the label for inds and strats that are added manually to a chart

    this is a good feature to avoid so much text at the top of the chart....which can interfere with the bars when on autoscale

    1. is there a way to change the label of inds added by strat code?...the plot settings are browseable however Label is not an option

    2. if no, could 7 use 'Sec' instead of 'Seconds' in default labels to save space?

    #2
    You could try:

    Add(SMA(10));
    SMA(10).Name = "\"Hi\"";
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      thanks

      tried it...had no effect at all

      Comment


        #4
        Please be sure you rerun your backtest or reapply a fresh copy of your strategy after such a change. Works as expected in Strategy Analyzer here. This is B6.

        .Name = ""; <--will remove the label
        .Name = "Hi"; <-- will rename the indicator as Hi(ES(1 min)... etc)
        .Name = "\"Hi\""; <-- will rename the indicator as Hi and remove all parameter listings afterwards.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          thanks Josh

          works fine

          I was lazy and did not define in full

          Add(SMA(Close,Fast));

          SMA(Fast).Name = "\"Hi\""; <<<<<<<<< left out the Close, ....which equates to a different name so could not find it

          SMA(Close,Fast).Name = "\"Hi\""; <<<< works perfectly

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          619 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          359 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          561 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          566 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X