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!
Comment