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 reynoldsn, Today, 07:04 PM
          0 responses
          2 views
          0 likes
          Last Post reynoldsn  
          Started by puapwr, Today, 06:09 PM
          0 responses
          4 views
          0 likes
          Last Post puapwr
          by puapwr
           
          Started by franciscog21, Today, 05:27 PM
          0 responses
          8 views
          0 likes
          Last Post franciscog21  
          Started by hdge4u, 04-29-2024, 12:23 PM
          5 responses
          28 views
          0 likes
          Last Post MisterTee  
          Started by llanqui, 01-25-2024, 06:15 PM
          9 responses
          65 views
          0 likes
          Last Post MisterTee  
          Working...
          X