Sidechair

box.set_bottom_right_point()

Browse the reference

Moves the bottom-right corner of a box to a position held in a chart.point.

Try it in the editor

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

Pine Script
box.set_bottom_right_point(id: series box, point: chart.point) -> void
box.set_bottom_right_point(point: chart.point) -> void

Arguments

NameTypeDefaultDescription
idseries boxrequiredThe box whose bottom-right corner moves.
pointchart.pointrequiredA chart.point whose index or time sets the right edge and whose price sets the bottom edge.

Returns

Nothing.

Example

Pine ScriptCorner follows the current barOpen in editor
//@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