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 label

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

    Indicator label

    Hello

    On my top left corner of my chart I can see my custom indicator's name and its parameters.
    Is it possible to hide it by default? How can I do that a. By code b. By GUI?

    Thanks

    #2
    Hello kiss987,

    Thanks for the post.

    You can override the DisplayName property to change the default label that is added to the chart.

    Example:

    Code:
    public override string DisplayName
    {
    	get { return "I am a chart label"; }
    }
    This override will go inside of your class like any other public property.

    Please let us know if we may be of any further assistance.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply.

      I set the text to an empty string. Although the label on the top left corner did set to an empty string as I wanted, when I open the indicators window on my chart, under the "Configured" caption I cannot see the indicator after I placed it because it was set to an empty string as well.

      Comment


        #4
        Hello kis987,

        Thanks for the follow-up,

        I found this post where a user defines the name in State.SetDefaults to preserve the same while SetDefaults is reached:



        Please let me know if I may be of any further assistance.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Hello,

          I have used this solution with my indicators but the problem is that I can't see the name of the indicator when I try to create an alert with them.

          How can I see the name of the indicators when I'm creating a new alert?

          Thanks.

          Comment


            #6
            Hello soyjesus,

            Thanks for the post.

            Currently, it is not possible to get around that. I will report this to the product management team so it can be changed in future updates.

            I will also add a vote to the SFT that exists to make this labeling process easier.

            Please let us know if you have any questions.
            Chris L.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Shansen, 08-30-2019, 10:18 PM
            24 responses
            939 views
            0 likes
            Last Post spwizard  
            Started by Max238, Today, 01:28 AM
            0 responses
            8 views
            0 likes
            Last Post Max238
            by Max238
             
            Started by rocketman7, Today, 01:00 AM
            0 responses
            4 views
            0 likes
            Last Post rocketman7  
            Started by wzgy0920, 04-20-2024, 06:09 PM
            2 responses
            28 views
            0 likes
            Last Post wzgy0920  
            Started by wzgy0920, 02-22-2024, 01:11 AM
            5 responses
            33 views
            0 likes
            Last Post wzgy0920  
            Working...
            X