barcolor

Colors the body of the current candle (wick and border keep the chart colors; the border takes the color when the chart draws no body fill). na keeps the default color.

barcolor(color: color, title: const string = na, display: const string = "all", offset: const int = 0, show_last: const int = na, editable: const bool = true)

Parameters

Example

barcolor(ta.rsi(close, 14) > 70 ? color.amber : na)