clearImage() |
Top Previous Next |
clearImage()
Remove all image objects currently drawn on the chart by drawImageRelative() or drawImageAbsolute().
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
}
}
|