Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JesseNinjaTrader Customer Service

    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.
        JesseNinjaTrader Customer Service

        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 mmenigma, Yesterday, 03:25 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by kujista, Today, 05:44 AM
          0 responses
          6 views
          0 likes
          Last Post kujista
          by kujista
           
          Started by ZenCortexCLICK, Today, 04:58 AM
          0 responses
          9 views
          0 likes
          Last Post ZenCortexCLICK  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          172 responses
          2,281 views
          0 likes
          Last Post sidlercom80  
          Started by Irukandji, Yesterday, 02:53 AM
          2 responses
          18 views
          0 likes
          Last Post Irukandji  
          Working...
          X