Bentrix Docs
HomePricingDashboard

Assay reference: box

runs as written · runs with Bentrix's own convention, said in its note · refused by name, the note says what Bentrix lacks · not yet built.

Functions

box.delete#

runs
box.delete(id: any)

The box deleted

idanyrequired

box.get_bottom#

runs
box.get_bottom(id: any) → float

Reads the box

idanyrequired

box.get_left#

runs
box.get_left(id: any) → int

Reads the box

idanyrequired

box.get_right#

runs
box.get_right(id: any) → int

Reads the box

idanyrequired

box.get_top#

runs
box.get_top(id: any) → float

Reads the box

idanyrequired

box.new#

runs — Bentrix's own convention
box.new(left: num, top: num, right: num, bottom: num, border_color: color?, border_width: num?, border_style: string?, extend: string?, xloc: string?, bgcolor: color?, text: any?, text_size: string?, text_color: color?, text_halign: string?, text_valign: string?, text_wrap: string?, text_font_family: string?, force_overlay: bool?) → box

Drawn by Bentrix in the study's own pane, from its x (a bar index, or a time with xloc.bar_time) and price

leftnumrequired
topnumrequired
rightnumrequired
bottomnumrequired
border_colorcoloroptional
border_widthnumoptional
border_stylestringoptional
extendstringoptional
xlocstringoptional
bgcolorcoloroptional
textanyoptional
text_sizestringoptional
text_colorcoloroptional
text_halignstringoptional
text_valignstringoptional
text_wrapstringoptional
text_font_familystringoptional
force_overlaybooloptional

box.set_bgcolor#

runs
box.set_bgcolor(id: any, color: color)

Changes the box

idanyrequired
colorcolorrequired

box.set_border_color#

runs
box.set_border_color(id: any, color: color)

Changes the box

idanyrequired
colorcolorrequired

box.set_border_width#

runs
box.set_border_width(id: any, width: num)

Changes the box

idanyrequired
widthnumrequired

box.set_bottom#

runs
box.set_bottom(id: any, bottom: num)

Changes the box

idanyrequired
bottomnumrequired

box.set_extend#

runs
box.set_extend(id: any, extend: string)

Changes the box

idanyrequired
extendstringrequired

box.set_left#

runs
box.set_left(id: any, left: num)

Changes the box

idanyrequired
leftnumrequired

box.set_lefttop#

runs
box.set_lefttop(id: any, left: num, top: num)

Changes the box

idanyrequired
leftnumrequired
topnumrequired

box.set_right#

runs
box.set_right(id: any, right: num)

Changes the box

idanyrequired
rightnumrequired

box.set_rightbottom#

runs
box.set_rightbottom(id: any, right: num, bottom: num)

Changes the box

idanyrequired
rightnumrequired
bottomnumrequired

box.set_text#

runs
box.set_text(id: any, text: any)

Changes the box

idanyrequired
textanyrequired

box.set_text_color#

runs
box.set_text_color(id: any, color: color)

Changes the box

idanyrequired
colorcolorrequired

box.set_top#

runs
box.set_top(id: any, top: num)

Changes the box

idanyrequired
topnumrequired

Families

box.*#

not yet

Drawn through Bentrix's objects in the study's pane; until then the call runs as a no-op and is said

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed