clearLines()

ICE Data Services -

clearLines()
Previous  Top  Next

clearLines()

Remove all line objects currently drawn on the chart by drawLineRelative() or drawLineAbsolute().

Parameters

none 
function takes no parameters



Usage

function main() { 
   ...
   ...

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

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

   }

}