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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    168 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    322 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    246 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    350 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X