Vela, our next-generation charting platform, is live at vela.luxalgo.com.
LuxAlgo

Plots

View as Markdown
FunctionStatusDescription
plot()✅Plot a series
plotchar()✅Plot character markers
plotarrow()✅Plot arrow markers
plotbar()✅Plot bar chart
plotcandle()✅Plot candlestick chart
plotshape()✅Plot shape markers
barcolor()✅Set bar color
bgcolor()✅Set background color
hline()✅Plot horizontal line
fill()✅Fill between two plots or hlines

Plot Title Collisions

When multiple plot() (or hline()) calls share the same title, PineTS disambiguates them by appending a #N suffix to the plot key. The first plot keeps the plain title, and subsequent collisions are numbered sequentially:

  • First plot(close, "SMA") → plot key "SMA"
  • Second plot(open, "SMA") → plot key "SMA#1"
  • Third plot(high, "SMA") → plot key "SMA#2"

Using duplicate plot titles is not recommended. The #N suffix ordering depends on execution order and may lead to fragile references. Always prefer unique titles for each plot. A more elegant solution for this case will be provided in a future version of PineTS.

On this page