Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Performance issues with marketreplay

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

    Performance issues with marketreplay

    Hi
    I've some performance issues in backtesting with the market replay functionality.
    I've a non-proprietary indicator creating objects on the chart and a proprietary strategy. Also I've followed the best practices of the forum and I'm trying to delete the historical objects that the indicator creates with the following code:

    foreach (dynamic obj in DrawObjects.ToList())
    {
    if(!obj.Tag.ToString().Equals("XXXXXX"))
    {
    RemoveDrawObject(obj.Tag.ToString());
    }
    }

    After the execution, objects are apparently deleted from that list, but in the next iteration they appear again in the list.

    On the other hand they never disappear from the Drawing Objects panel.

    Could you kindly help me?

    Thanks!

    #2
    Hello egurenk,

    Below are links to a few examples of using RemoveDrawObject().
    https://ninjatrader.com/support/foru...30#post1062730
    https://ninjatrader.com/support/foru...79#post1061379

    In your script, have you added a print to ensure that the condition is evaluating as true when you expect it?
    https://ninjatrader.com/support/foru...121#post791121

    Is the logic calling Draw methods and drawing new objects?
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X