Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

redraw chart

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

    redraw chart

    I'm using a button from a custom indicator to make certain other indicators on the chart visible or not visible.
    The button works and the indicators are being correctly made not visible however when an indicator was drawn on another chart panel like with the RSI or VOL indicators then when I make these indicators not visible the chart doesn't rescale or resize to use the entire chart window and I have to do a reload ninjascript for the chart to realize that the indicator in panel #2 is now not visible and make the panel #2 disappear and use up the space it occupied for drawing the chart bars.
    I've tried using
    chartWindow.ActiveChartControl.InvalidateVisual();
    ForceRefresh();

    but it doesn't do the job.

    I've tried searching for this problem on the forum but I really don't even know how or what i would search for on this one - so it's time to ask the experts.
    thanks

    #2
    Hello dtl-saw, thanks for your post.

    All chart panel properties are meant to be set through the UI (they are "read-only" from the ChartPanel object). Unfortunately, it's not possible to modify the height or remove the panel in any supported way.

    Best regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

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