removeShape()

eSignal EFS 2

removeShape()

Top  Previous  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 );

 

 

       }

 

}