open (series or numeric) – Candle open value
series
numeric
high (series or numeric) – Candle high value
low (series or numeric) – Candle low value
close (series or numeric) – Candle close value
name (string) – Plot name. Default value is "pc(open,high,low,close)"
string
"pc(open,high,low,close)"
candle_color (color) – Candle color
color
Plots a candlestick defined by the open, high, low and close values.
Example:
plot_candle { open = o, high = h, low = l, close = c, color = iff (c > o, "green", "red") }
plot
plot_shape