Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chartcontrol Invalidate

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

    Chartcontrol Invalidate

    Hi,

    I know this is an unsupported feature, but maybe someone can help anyway.

    I have been using ChartControl.ChartPanel.Invalidate() to redraw the screen on a button press, and also on a timer. I have noticed a couple of anomalies. if a text object is redrawn it can leave the previous rendering in place, and redraw over the top of it - when you set the transparency you can see the older drawing behind.

    there are situations also where I specifically make removedrawobject() calls and the objects are not removed.

    I am using these techniques in 2 different indicators I am developing, and both of these indicators have secondary dataseries, could that possibly have something to do with it?

    Thanks,
    Will.

    #2
    Hi Will,

    Thank you for your post.

    I will leave this thread open to allow any of other users who may be able to assist you with this.

    Let me know if I can be any help for anything else.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for that, if I get any more clues I will post them as well.

      Will.

      Comment


        #4
        Another symptom

        I've also noticed with one of my two indicators experiencing this problem that my text box can be displayed twice in the same chart.

        If I change the text drawing position, say from top left to bottom left, it will draw it in both positions at the same time - I assume that the one on the top left is the old one that has not been removed correctly, and the bottom left one is the new redraw.

        It also continues to update the text in both drawing positions.

        W.

        Comment


          #5
          Have you tried ChartControl.Refresh?

          Comment


            #6
            Thanks for the reply, I will try that.

            I have noticed however that since the .18 upgrade the issue has not yet appeared. If I see it again I will try the refresh method.

            Regards,
            Will.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 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
            574 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X