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

How to draw always on top

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

    How to draw always on top

    I'm working on a toolbar for NT8. The toolbar is implemented as an 'indicator'
    Although its working fine , the labels of all indicators get written on top of my toolbar.
    Is there a way to make my indicator / toolbar to be drawn on top of everything else ?

    See screenshot below where you can see the Label field of the indicator getting drawn on top of my toolbar
    Click image for larger version

Name:	Capture.JPG
Views:	265
Size:	75.2 KB
ID:	1040672

    EB Worx
    NinjaTrader Ecosystem Vendor - EB Worx

    #2
    Hello Erwin Beckers,
    Thanks for your post.

    You can remove your charts label programatically by using the following snippet inside your indicators class.

    Code:
    public override string DisplayName
    {[INDENT]get { return ""; }[/INDENT]
     }
    I am not aware of a way to get the label to draw underneath your toolbar.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Yes but thats not the solution.. You could have all kind of indicators on the chart, and they will all display the label on top of the toolbar.
      Is there no way to disable this without requiring the user to clear all the label fields of all his indicators , or is there some way to draw always on top ?
      EB Worx
      NinjaTrader Ecosystem Vendor - EB Worx

      Comment


        #4
        Erwin Beckers,

        I am not aware of a way to get the label to draw underneath your toolbar, or always on top through NinjaScript. Maybe someone else knows of some C# concepts that would do this for you. We can leave this post open for anyone to comment.

        Let me know if I can be of further assistance.
        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Maybe Josh missed an important detail?

          Originally posted by NinjaTrader_JoshG View Post
          You can remove your charts label programatically by using the following snippet inside your partial indicators class.

          Code:
          public override string DisplayName
          {[INDENT]get { return ""; }[/INDENT]
          }
          Try doing a UserDefinedMethods.cs approach and put this method inside the Indicator class via a partial class declaration.

          Comment


            #6
            Thx bitdavid, but as said before thats not a solution.
            A user may have any number of indicators on his chart, and they all print their label in the top part of the chart. You cannot expect the user to clear the label field of all his indicators
            EB Worx
            NinjaTrader Ecosystem Vendor - EB Worx

            Comment


              #7
              Hello Erwin Beckers,

              Thank you for your response.

              Consider that this is how the NinjaTrader chart functions and it would be more ideal to move the toolbar to a new area in the Chart display or add it to the Chart grid.

              There is no global setting to hide all Labels for indicators but I will forward a feature request to development for this.

              Comment


                #8
                Thanks Patrick,
                Yes thats what i'm looking at now. Making it a floating toolbar instead of drawing it directly on the charty
                EB Worx
                NinjaTrader Ecosystem Vendor - EB Worx

                Comment


                  #9
                  Hello Erwin Beckers,

                  Thank you for your patience.

                  The internal tracking number for your feature request is SFT-3620. Please reference this internal tracking number if you ever have questions regarding this feature request.

                  When a feature request is implemented, you'll find it in the release notes:


                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by gemify, 11-11-2022, 11:52 AM
                  6 responses
                  803 views
                  2 likes
                  Last Post ultls
                  by ultls
                   
                  Started by ScottWalsh, Today, 04:52 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post ScottWalsh  
                  Started by ScottWalsh, Today, 04:29 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post ScottWalsh  
                  Started by rtwave, 04-12-2024, 09:30 AM
                  2 responses
                  22 views
                  0 likes
                  Last Post rtwave
                  by rtwave
                   
                  Started by tsantospinto, 04-12-2024, 07:04 PM
                  5 responses
                  70 views
                  0 likes
                  Last Post tsantospinto  
                  Working...
                  X