removeShape()

ICE Data Services -

removeShape()
Previous  Top  Next


removeShape( tagID )

Remove a specific shape object originally drawn by drawShapeRelative() or drawShapeAbsolute(). The object is identified by its tagID.

Parameters

tagID
the unique ID of the shape object to remove


Usage

function main() {

   ...
   ...

   
if ( getBarState() == BARSTATE_NEWBAR ) {

      
//remove a specific shape object from the chart. We we originally
      
//drew this shape object, we gave it a tagID of 201 so that we 
      
//could identify it later.
      removeShape( 
201 );


   }

}