• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Performance question for a drawing objetc is better to change it or remove it)

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

    Performance question for a drawing objetc is better to change it or remove it)

    Scenario:

    I have a drawing object (a rectangle in this case) that is constantly redrawn when the instrument price changes. Currently I delete the rectangle then redraw it so no baggage collects on the constantly redrawn object. This rectangle is redrawn a lot.

    Question:

    Am I causing more overhead by removing it and then redrawing a new object instead of just changing the attributes of the existing drawing object or is it negligible?

    Cheers

    #2
    Hello ct,
    Thanks for your post.

    It would not make a difference to the performance of the platform if you deleted an object before drawing another rectangle or if you simply changed the existing rectangle.
    Josh G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by andrewtrades, Today, 02:27 PM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_RyanS  
    Started by RonnieB, Today, 01:51 PM
    4 responses
    11 views
    0 likes
    Last Post RonnieB
    by RonnieB
     
    Started by dtl-saw, Today, 01:52 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_RyanS  
    Started by ralett, Today, 11:28 AM
    4 responses
    12 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by ChazJ, Today, 09:59 AM
    3 responses
    9 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X