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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X