Lines, histograms, shapes, background colour and fills, and how colours are built.
//@version=6
indicator("Plots and Colours")
hist = close - open
histColor = hist >= 0 ? color.new(color.green, 0) : color.new(color.red, 0)
plot(hist, "Body", histColor, style = plot.style_histogram, linewidth = 3)
smooth = ta.ema(hist, 10)
line = plot(smooth, "Smooth", color.blue, 2)
zero = plot(0, "Zero", color.new(color.gray, 50))
fill(line, zero, smooth > 0 ? color.new(color.green, 80) : color.new(color.red, 80))
plotshape(ta.crossover(smooth, 0), "Turn up", shape.circle, location.bottom, color.green, size = size.tiny)
bgcolor(smooth < 0 ? color.new(color.red, 92) : na)