Functions
box.get_right()
Returns the right x-coordinate of a box.
Syntax
box.get_right(series box id) → series int
Arguments
id required series box Drawing object to modify or query. Return Type
series int Example
//@lipi=2
indicator("box.get_right Example", overlay=true)
static box b = box(na)
if barstate.islast {
b := box.new(bar_index[10], high, bar_index, low, bgcolor=color.new(color.blue, 0.8))
}
plot(na(b) ? na : box.get_right(b))