Indicator color candle

Hello, can someone help me write the code that will change the color of the candles according to sma?

Seems like there are never any replies on this forum.
I was curious about the same thing. I tried to change candle colors and nothing works.

Hey there, to color the candles you use the candlestick property.

Example:

return {
  candlestick: {
    color: 'green'
  }
};

I also recently launched my premium indicator library that features a Moving Averages pack that lets you paint bars, add signals and more, check it out here: https://tikitrade.com/tools/#moving-averages

1 Like