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 cls71, Today, 04:45 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by TradeForge, Today, 02:09 AM
          1 response
          22 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by elirion, Today, 01:36 AM
          2 responses
          14 views
          0 likes
          Last Post elirion
          by elirion
           
          Started by DJ888, 04-16-2024, 06:09 PM
          5 responses
          14 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by samish18, Yesterday, 08:31 AM
          4 responses
          14 views
          0 likes
          Last Post elirion
          by elirion
           
          Working...
          X