Home/Dovee/Function reference

table

A grid of values pinned to a corner of the chart. Write it at the top level.

Reference/Language/Language

table [top|middle|bottom] [left|center|right] as "Title"

Each indented line is a header or a row of cells separated by commas. A cell is a value, an optional color, and an optional when … else: "Up" green when close > ema(close, 50) else "Down" red picks the first branch whose condition is true; the else part can be another cell with its own when. Cells show the last bar, after the strategy runs, so position size, entry price, and profit work. Whole numbers show as is, other numbers to 2 decimals (4 significant digits below 1), and na as —. The default place is top right. Up to 50 rows and 10 cells per row. The title names the table in the Style tab. table stays usable as a variable name.

Return value

—

Example

table top right as "Dashboard"
  header "Metric", "Value"
  row "RSI 14", rsi(14)
  row "Trend", "Up" green when close > ema(close, 50) else "Down" red
  row "ATR", atr(14)

See also