Presentation
Plots, fills, levels, colors, text and shapes, drawings and level tags, heatmaps, tables and legend items.
- What the chart drawsWhat a script puts on a ChartDeck chart, on real candles: legend rows, values under the pointer, hover cards, drawings, tables, alert markers, panes.
- PlotsDraw values on the chart with plot(): styles, line widths and dashes, per-bar colors, offsets, where values show, named styles and the 128-plot cap.
- FillsShade the space between two plots or two levels with fill(), with one color, a color per bar, or a vertical gradient.
- LevelsDraw fixed horizontal levels with hline(), style them solid, dashed or dotted, let users move them, and shade the band between two levels.
- ColorsTheme colors that follow the chart's look, named colors, hex literals, color.new and transparency, rgb, gradients, palettes and per-theme colors.
- Text and shapesMark signal bars with plotshape and plotchar: shapes, characters, locations, sizes, text under or over the mark, and arrows sized by value.
- DrawingsLabels, lines, boxes, polylines and line fills drawn from code: creating, updating with setters, deleting, coordinates, extend, caps and keeping them fast.
- Positions and your drawingsDraw trades as the chart's own Long / Short position tool with drawing.position, and read the member's own drawings with drawing.user (opt-in).
- Tooltips and tooltip cardsEvery script tooltip opens in a card that scrolls, pins and opens on a tap. Write structured cards with pages, checks and small charts using tip.
- HeatmapsThe heatmap drawing, columns of colored cells over time and price, painted as one image, with palettes, scales, the automatic reference and budgets.
- TablesShow a grid of text in a corner of the pane with table.new and table.cell: positions, styling, merged cells, updating on the last bar and the caps.
- Legend itemsShowing status text, color keys and badges in the script's legend row with legend.info, legend.key and legend.badge.
- Background colorTint chosen bars with bgcolor(): conditional backgrounds, transparency, offsets, and how it behaves on the price pane and in a script's own pane.
- Bar coloringRecolor the chart's own candles with barcolor(): color by trend or signal, leave bars alone with na, and when to draw your own candles instead.