plotcandle

Draws a candle per bar from four series (open, high, low, close), like the chart candles: a body from open to close, a wick from low to high. A bar where any of the four is na draws nothing.

plotcandle(open: float, high: float, low: float, close: float, title: const string = na, color: color = na, wickcolor: color = na, editable: const bool = true, show_last: const int = na, bordercolor: color = na, display: const string = "all", force_overlay: const bool = false)

Parameters

Example

plotcandle(open, high, low, close, "Candles", close >= open ? color.teal : color.red)