I have an indicator that is drawing objects on a chart (triangles in this instance). It has a special way of scanning across the charts, and this is causing it to leave invalid objects on the chart.
The objects are named with a (unique tag)+(the three time codes of the triangle). The only method I have found to remove objects from a chart is via the ClearOutputWindow() method. I use this method in the Initialize() method to setup a clean chart when dropping the indie on said chart. Since it clears ALL objects, this is the worst possible method to deal with removing these stray objects after the indie is on the chart.
So, my question is are there any commands specific to deleting objects from a chart based on all or part of the object name? In mql4, I use the ObjectDelete(object name here) command. I have hunted some something similar in ninjascript, but nothing has turned up so far.
Thanks for any help anyone can provide!
Comment