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 cmoran13, 04-16-2026, 01:02 PM
    0 responses
    43 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    26 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    163 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    98 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    158 views
    2 likes
    Last Post CaptainJack  
    Working...
    X