Plots
plot() is the main way to display a numeric series. It appears once at script scope and the host renders a point per bar from the value you supply.
Colors
Colors are 24-bit RGB values, optionally with an 8-bit alpha channel.
Fills
A fill is a tinted region between two plots or two hline levels.
Levels
Horizontal levels mark constant prices (overbought bands, round numbers, average entry) that span the whole chart pane.
Lines and Boxes
Lines, boxes, and polylines are drawing objects: you create them with .new(), hold the returned reference, and later modify or delete it.
Backgrounds
bgcolor() tints the background of each bar. It is the right tool for visualising sessions, filter windows, or regime labels — any colour-only, per-bar state.
Bar Coloring
barcolor() recolours the chart's candles themselves. The host repaints the body and wick in the colour you supply; na leaves the candle in its default colour.
Bar Plotting
Two declarative calls render *synthetic candles* from your own OHLC series:
Text and Shapes
ChartScript exposes three declarative shape plotters (plotshape, plotchar, plotarrow) and one drawing primitive (label.new).
Tables
A table is a floating UI element pinned to one of the chart's nine positions. It is the right tool for always-visible, grid-shaped summaries (strategy report, regime read-out, session…