Is there any way to determine if RemoveDrawObject() actually removed an object in the code?
This code removes an object, if and only if, a draw object exists at <CurrentBar - 1>.
prevCB = CurrentBar - 1;
tagID = prevCB.ToString() + "Buy";
RemoveDrawObject(tagID)
After the RemoveDrawObject() code is executed, does it end with a return code of 0 if an object was actually removed and 1 if it wasn't?
I want to be able to do something like this ..
if( RemoveDrawObject(tagID) = 0 ) then <do something>
Is that supported?
Comment