Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator height

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

    Indicator height

    Good morning,

    I have developed an indicator that is pretty much just a bar (which is a block plot) that runs across the bottom of the panel, that changes colors with changing conditions. The height of the bars defaults to15; that is, I set the plot width to 15. All is well with the indicator itself, however, when it draws itself, there is way too much wasted space between the top of the bar and the top of the indicator panel.

    How do I resize the height of the indicator panel to the minimum that the bar would need to be visible. In other words, it the height of the indicator panel is 50, how do I make it 16?

    Thanks!
    Attached Files

    #2
    Hello,

    Thank you for the post.

    You can override the OnCalculateMinMax() function to set the minimum and maximum of your indicator panel.

    There is a good example of its use in the help guide here:


    If we may be of any further assistance, please let us know.

    Comment


      #3
      Thanks Chris, that definitely made an improvement. It let me center the plot inside the indicator so it doesn't look as bad. But I'd also like to resize the whole panel. There is now just as much wasted space but it's spread out to above and below the block plot, not just above it.

      Is there a way to set the height of the panel?

      Comment


        #4
        Hello,

        Thank you for the follow-up.

        Unfortunately, there is no way to programmatically change the size of a panel.

        Please let us know if we may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X