Lipi Reference
Lipi

Functions

box.delete()

Deletes a box.

Syntax

                box.delete(series box id) → void
              

Arguments

id required series box Drawing object to modify or query.

Return Type

void

Example


          //@lipi=2
indicator("box.delete Example", overlay=true)
if barstate.islast {
    b = box.new(bar_index[10], high, bar_index, low, bgcolor=color.new(color.blue, 0.8))
    box.delete(b)
}