Lost Trader
02-28-2008, 11:09 AM
Is there a way to test for the existence of a specific drawn object on the chart, given the tag name is known? If not, please make one?
Similar to RemoveDrawnObject("unique_tagname") only a test for existence that simply returns a boolean flag...
There are times I want to modify a previous object, but not draw one if it doesn't exist. The original object creation logic is far too complex to repeat and would unnecessarily slow down the code, when all I want to know is if there's a drawn object of that name on the chart already.
Similar to RemoveDrawnObject("unique_tagname") only a test for existence that simply returns a boolean flag...
There are times I want to modify a previous object, but not draw one if it doesn't exist. The original object creation logic is far too complex to repeat and would unnecessarily slow down the code, when all I want to know is if there's a drawn object of that name on the chart already.