Lipi Reference
Lipi

Functions

box.set_lefttop()

Sets a box's left x-coordinate and top price.

Syntax

                box.set_lefttop(series box id, series int left, series float top) → void
              

Arguments

id required series box Drawing object to modify or query.
left required series int Left x-coordinate of the box.
top required series float Top price of the box.

Return Type

void

Example


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