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

Set height of inidcator panel

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

    Set height of inidcator panel

    Hi there,

    is there any way to constrain the height of an indicator panel programatically?

    I've got a whole bunch of indicators on my strategy that don't require much height. They're just green/red/yellow strips for various buy/sell/flat signals I'm working with. When I start my strategy these panels are granted about 75% of the available chart space, with the main-panel getting the remaining 25%.

    During development, I am Tweaking, Rebuilding & restarting my strategy loads of times per day and I am wasting so much time resizing panels.

    thanks,

    #2
    Hello kevinenergy,

    Thank you for the post.

    Unfortunately, the ChartPanel object's H property is read-only. This can't be set programmatically. I will submit a feature request to add the ability to set this property through a NinjaScript object.

    Thanks in advance for your patience.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Yes please do submit a feature request - and also point out that people have been waiting for this feature for over 11 years!! The first posts on this subject I found are 2007/2008



      Comment


        #4
        Hello kevinenergy,

        Thank you for the reply.

        I will add all of these links to my report to let our product management team know of the demand for this feature.

        Thank you for the suggestion, please let me know if I can assist further.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Hello kevinenergy,

          I have the feature tracking ID for this item. I also added three votes to it for the three users that have requested this.

          SFT-3698

          You may check the release notes upon future updates to track new features:


          Please let me know if I can assist further.
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            What is the current status of this 11 year-old request?

            Comment


              #7
              Hi EminiTrader, thanks for the follow up. This feature request is still pending. The release notes will include all added feature request, so if you do not see it in there, it means the development team has decided to not include the feature in that particular update.

              Kind regards,
              -ChrisL
              Chris L.NinjaTrader Customer Service

              Comment


                #8
                I see this as necessary for several reasons. One of which being there are times (for reasons that I cannot isolate) that the workspace does not accurately save the panel height and it must be adjusted manually.

                Comment


                  #9
                  Add my vote as well. And multiply it by infinity, so it would be implemented rather sooner than later.

                  Comment


                    #10
                    I would like to have this feature too.

                    Comment


                      #11
                      Hello Bidder, UltraNIX, and Bobin,

                      Thanks for your notes.

                      Your votes have been added.

                      Let us know if we may assist further.
                      Brandon H.NinjaTrader Customer Service

                      Comment


                        #12
                        There is a really simple solution:
                        Code:
                        ChartControl.RowDefinitions.First().Height = new GridLength(100, rowDefinition.Height.GridUnitType);
                        Keep in mind that 100 is not a value in pixels but relative to the other grid lengths.

                        Comment


                          #13
                          Thanks for sharing!


                          Originally posted by Bobin View Post
                          There is a really simple solution:
                          Code:
                          ChartControl.RowDefinitions.First().Height = new GridLength(100, rowDefinition.Height.GridUnitType);
                          Keep in mind that 100 is not a value in pixels but relative to the other grid lengths.

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by traderqz, Today, 12:06 AM
                          2 responses
                          3 views
                          0 likes
                          Last Post traderqz  
                          Started by RideMe, 04-07-2024, 04:54 PM
                          5 responses
                          28 views
                          0 likes
                          Last Post NinjaTrader_BrandonH  
                          Started by f.saeidi, Today, 08:13 AM
                          1 response
                          7 views
                          0 likes
                          Last Post NinjaTrader_ChelseaB  
                          Started by DavidHP, Today, 07:56 AM
                          1 response
                          6 views
                          0 likes
                          Last Post NinjaTrader_Erick  
                          Started by kujista, Today, 06:23 AM
                          3 responses
                          11 views
                          0 likes
                          Last Post kujista
                          by kujista
                           
                          Working...
                          X