Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Display Name

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

    Indicator Display Name

    I know that it is possible to override the display name of the indicator. However, is it possible to display one name for the indicator on the chart and a different name in the Configured pane in the Indicators window? Thank you.

    #2
    Hello,

    Just like the remainder of the script, you can use the State system to delegate logic in the method body.

    Code:
    public override string DisplayName             
    {
          get { return State > State.SetDefaults ? string.Empty : Name; }
    }

    I look forward to being of further assistance.

    Comment


      #3
      Thanks Jesse. Works like a charm.

      As an aside, how could I use the default indicator name instead of the custom 'Name'?

      Comment


        #4
        Hello,

        Do you mean the Class name opposed to the Name property?

        The Name property is the default that should be used, if you are referring to the Class, you could use reflection:

        Code:
        GetType().Name

        I look forward to being of further assistnace.

        Comment


          #5
          GetType().Name returns same as Name but I do get the point. Thank you very much Jesse.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, Yesterday, 09:41 PM
          1 response
          28 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, Today, 02:41 AM
          0 responses
          10 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, Yesterday, 11:44 PM
          0 responses
          21 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          37 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          34 views
          0 likes
          Last Post CarlTrading  
          Working...
          X