Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ENUM showing on the label the name (and the parameters?) of the indicator selected

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

    ENUM showing on the label the name (and the parameters?) of the indicator selected

    Hello
    how could one modify the label of the “Sample universal moving average” indicator https://ninjatrader.com/support/help...ned_parame.htm so that in the top left corner of the chart panel is specified which indicator has been selected from the ENUM and has been plotted on the chart. At present the sample indicator maintains always the same label for any of the moving average selected and it does not provide any information about it.
    Please could you also show how the script should be modified in order to include in the ENUM also a moving average or an indicator which needs more than one parameter, such as any one of the following: MACD, or IchimokuCloud, or Keltner channel, or Parabolic SAR, or T3.
    Thank you.

    #2
    Hello guidoisot,

    If you wanted to use the existing chart label you can override the DisplayName: https://ninjatrader.com/support/help...sub=displaynam

    In that override you could then use the MAType to print a string depending on which was selected.

    The other alternative is to use a drawing object and then draw text fixed to one of the corners and include the information you wanted.

    Code:
    public override string DisplayName
    {
    get { return "My Custom Display " + MAType.ToString(); }
    }

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    549 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X