Moves the bottom-right corner of a box to a position held in a chart.point.
The point carries the bar and the price for the corner in one value. It is the point-based form of box.set_rightbottom().
Build the point with chart.point.now() to follow the current bar.
Syntax
box.set_bottom_right_point(id: series box, point: chart.point) -> void
box.set_bottom_right_point(point: chart.point) -> voidArguments
| Name | Type | Default | Description |
|---|---|---|---|
| id | series box | required | The box whose bottom-right corner moves. |
| point | chart. | required | A chart.point whose index or time sets the right edge and whose price sets the bottom edge. |
Returns
Nothing.
Example
//@version=6
indicator("box.set_bottom_right_point: follow", overlay = true)
var box z = box.new(bar_index, high, bar_index + 1, low)
box.set_bottom_right_point(z, chart.point.now(low))See also
Runs on Sidechair