clearText()

ICE Data Services -

clearText()
Previous  Top  Next


clearText()

Remove all text objects currently drawn on the chart by drawText(), drawTextRelative(), drawTextAbsolute() or drawTextPixel().

Parameters

none
function takes no parameters


Usage

function main() { 

   ...
   ...
if ( getBarState() = BARSTATE_NEWBAR ) {
      
//clear all text objects that may have been drawn during the 
      
//creation of the last bar
      clearText();

      
//now we can start drawing new objects based on the current bar

   }

}