TradeZoro
Notifications

Reference

Tables

A grid of text pinned to a corner of the pane.

table.cell(table_id, column, row, text="", width=0, height=0, text_color=na, text_halign="center", text_valign="center", text_size="normal", bgcolor=na, tooltip="")

Sets a cell's text and colors.

Returns: nothing

ParameterTypeNotes
table_idtable
columnint
rowint
textstringDefault ""
widthnumDefault 0
heightnumDefault 0
text_colorcolorDefault na
text_halignstringDefault "center"
text_valignstringDefault "center"
text_sizestringDefault "normal"
bgcolorcolorDefault na
tooltipstringDefault ""

table.cell_set_bgcolor(table_id, column, row, bgcolor)

Changes a cell's background.

Returns: nothing

ParameterType
table_idtable
columnint
rowint
bgcolorcolor

table.cell_set_text(table_id, column, row, text)

Changes a cell's text.

Returns: nothing

ParameterType
table_idtable
columnint
rowint
textstring

table.cell_set_text_color(table_id, column, row, text_color)

Changes a cell's text color.

Returns: nothing

ParameterType
table_idtable
columnint
rowint
text_colorcolor

table.clear(table_id, start_column, start_row, end_column=na, end_row=na)

Clears a range of cells.

Returns: nothing

ParameterTypeNotes
table_idtable
start_columnint
start_rowint
end_columnintDefault na
end_rowintDefault na

table.delete(table_id)

Removes the table.

Returns: nothing

ParameterType
table_idtable

table.new(position, columns, rows, bgcolor=na, frame_color=na, frame_width=0, border_color=na, border_width=0)

Creates a table fixed to a corner of the chart.

Returns: table

ParameterTypeNotes
positionstring
columnsint
rowsint
bgcolorcolorDefault na
frame_colorcolorDefault na
frame_widthintDefault 0
border_colorcolorDefault na
border_widthintDefault 0

Education only. Not financial advice. Examples are teaching samples, not trading results.

Zscript is coming soon

The manual opens when Zscript launches.

Back to home