clearText() |
Top Previous Next |
clearText()
Remove all text objects currently drawn on the chart by drawText(), drawTextRelative(), drawTextAbsolute() or drawTextPixel().
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
}
}
|