Skip to content
TradequixDocsOpen the terminal
OverviewStart here, search, progress
  • Introduction
  • Quickstart
  • How a script runs
  • Types and qualifiers
  • Operators, conditionals and loops
  • Functions and methods
  • Objects and enums
  • Arrays, matrices and maps
  • Strings and colours
  • Time and sessions
  • Bar states
  • Plotting
  • Inputs
  • Technical analysis
  • Drawings and tables
  • Multiple timeframes
  • Strategies
  • Alerts in scripts
  • Repainting
  • The Pine editor
  • Indicator settings
  • Coming from TradingView
  • The data
  • Publish and sell
  • Catalogue and community
  • Your dashboard and earnings
  • Errors and debugging
  • Limits
  • Coverage
  • Built-in catalogue
  • Cookbook
  • Write Pine with AI
  • FAQ
  • Glossary
  • Cheat sheet
  • Function reference
  • Will it run here?
  • Error index
Function reference

Drawings: label, line, box, table

Objects placed at coordinates. Create with *.new(), keep the id to update or delete it. See the Drawings guide.

134 names from PineTS 0.11.1 · 7 with full entries

label.new

Verified
label.new(x, y, text, xloc, yloc, color, style, textcolor, size, textalign, tooltip, force_overlay)

A text label at a bar and price.

line.new

Verified
line.new(x1, y1, x2, y2, xloc, extend, color, style, width, force_overlay)

A straight line between two points. extend.right/left/both continues it.

box.new

Verified
box.new(left, top, right, bottom, border_color, border_width, border_style, extend, xloc, bgcolor, text, …)

A rectangle.

table.new

Verified
table.new(position, columns, rows, bgcolor, frame_color, frame_width, border_color, border_width, force_overlay)

A grid pinned to a corner: position.top_right and so on.

table.cell

Verified
table.cell(table_id, column, row, text, width, height, text_color, text_halign, text_valign, text_size, bgcolor, tooltip)

Sets one cell. Columns and rows count from 0.

linefill.new

Supported
linefill.new(line1, line2, color)

Shades between two lines.

polyline.new

Supported
polyline.new(points, curved, closed, xloc, line_color, fill_color, line_style, line_width, force_overlay)

A path through an array of chart.point.

Everything else in Drawings

Also implemented. These follow TradingView’s Pine v6 reference for their arguments.

  • label.allSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.copySupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.deleteSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.get_textSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.get_xSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.get_ySupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_colorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_pointSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_sizeSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_styleSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_textSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_text_font_familySupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_text_formattingSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_textalignSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_textcolorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_tooltipSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_xSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_xlocSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_xySupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_ySupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.set_ylocSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_arrowdownSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_arrowupSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_circleSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_crossSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_diamondSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_flagSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_label_centerSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_label_downVerifiedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_label_leftSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_label_lower_leftSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_label_lower_rightSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_label_rightSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_label_upVerifiedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_label_upper_leftSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_label_upper_rightSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_noneSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_squareSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_text_outlineSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_triangledownSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_triangleupSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • label.style_xcrossSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.allSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.copySupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.deleteSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.get_priceSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.get_x1SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.get_x2SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.get_y1SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.get_y2SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.linefillsSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_colorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_extendSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_first_pointSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_second_pointSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_styleSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_widthSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_x1SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_x2SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_xlocSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_xy1SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_xy2SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_y1SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.set_y2SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.style_arrow_bothSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.style_arrow_leftSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.style_arrow_rightSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.style_dashedSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.style_dottedSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • line.style_solidSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.allSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.copySupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.deleteSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.get_bottomSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.get_leftSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.get_rightSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.get_topSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_bgcolorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_border_colorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_border_styleSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_border_widthSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_bottomSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_bottom_right_pointSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_extendSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_leftSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_lefttopSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_rightSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_rightbottomSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_textSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_text_colorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_text_font_familySupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_text_formattingSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_text_halignSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_text_sizeSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_text_valignSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_text_wrapSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_topSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_top_left_pointSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • box.set_xlocSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.allSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_bgcolorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_heightSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_textSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_text_colorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_text_font_familySupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_text_formattingSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_text_halignSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_text_sizeSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_text_valignSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_tooltipSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.cell_set_widthSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.clearSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.deleteSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.merge_cellsSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.set_bgcolorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.set_border_colorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.set_border_widthSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.set_frame_colorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.set_frame_widthSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • table.set_positionSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • linefill.allSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • linefill.deleteSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • linefill.get_line1SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • linefill.get_line2SupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • linefill.set_colorSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • polyline.allSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
  • polyline.deleteSupportedImplemented. Arguments as in TradingView's Pine v6 reference.

On this page

  • label.new
  • line.new
  • box.new
  • table.new
  • table.cell
  • linefill.new
  • polyline.new
  • Everything else (127)