removeBand()

ICE Data Services -

removeBand()
Previous  Top  Next

removeBand( tagID )

Remove a specific band object originally drawn by addBand(). The object is identified by its tagID.

Parameters

tagID
the unique ID of the band object to remove


Usage

function main() { 
  ...
   ...

   
if ( getBarState() == BARSTATE_NEWBAR ) {

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