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