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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          578 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 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
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X