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
line.delete#
line.delete(id: any)The line deleted
id | any | required |
line.get_price#
line.get_price(id: any, x: num) → floatThe line's price at a bar, on the straight line through its ends
id | any | required |
x | num | required |
line.get_x1#
line.get_x1(id: any) → intReads the line
id | any | required |
line.get_x2#
line.get_x2(id: any) → intReads the line
id | any | required |
line.get_y1#
line.get_y1(id: any) → floatReads the line
id | any | required |
line.get_y2#
line.get_y2(id: any) → floatReads the line
id | any | required |
line.new#
line.new(x1: num, y1: num, x2: num, y2: num, xloc: string?, extend: string?, color: color?, style: string?, width: num?) → lineDrawn by Bentrix in the study's own pane, from its x (a bar index, or a time with xloc.bar_time) and price
x1 | num | required |
y1 | num | required |
x2 | num | required |
y2 | num | required |
xloc | string | optional |
extend | string | optional |
color | color | optional |
style | string | optional |
width | num | optional |
line.set_color#
line.set_color(id: any, color: color)Changes the line
id | any | required |
color | color | required |
line.set_extend#
line.set_extend(id: any, extend: string)Changes the line
id | any | required |
extend | string | required |
line.set_style#
line.set_style(id: any, style: string)Changes the line
id | any | required |
style | string | required |
line.set_width#
line.set_width(id: any, width: num)Changes the line
id | any | required |
width | num | required |
line.set_x1#
line.set_x1(id: any, x: num)Changes the line
id | any | required |
x | num | required |
line.set_x2#
line.set_x2(id: any, x: num)Changes the line
id | any | required |
x | num | required |
line.set_xy1#
line.set_xy1(id: any, x: num, y: num)Changes the line
id | any | required |
x | num | required |
y | num | required |
line.set_xy2#
line.set_xy2(id: any, x: num, y: num)Changes the line
id | any | required |
x | num | required |
y | num | required |
line.set_y1#
line.set_y1(id: any, y: num)Changes the line
id | any | required |
y | num | required |
line.set_y2#
line.set_y2(id: any, y: num)Changes the line
id | any | required |
y | num | required |
Constants
line.style_*#
A line's styles
Families
line.*#
Drawn through Bentrix's objects in the study's pane; until then the call runs as a no-op and is said