clearImage()

eSignal EFS 2

clearImage()

Top  Previous  Next

 

clearImage()

 

Remove all image objects currently drawn on the chart by drawImageRelative() or drawImageAbsolute().

 

Parameters

 

none

function takes no parameters

 

Usage

 

function main() {

 

       ...

       ...

 

       if ( getBarState() == BARSTATE_NEWBAR ) {

               //clear all image objects that may have been drawn during the

               //creation of the last bar

               clearImage();

 

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

 

       }

 

}