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
colorcolor: The candle color for this bar; na keeps the default color.titleconst string: Its name in the legend and the settings.displayconst string: display.none does not draw it; every other display.* value (default display.all) draws it.offsetconst int: shifts it by this many bars: positive moves it right (into the future), negative left (at most 500)show_lastconst int: draw only on the newest this many bars (na: all)editableconst bool: Accepted for scripts from Pine and ignored: it changes nothing on PROLYNT.
Example
barcolor(ta.rsi(close, 14) > 70 ? color.amber : na)