Changing candle color based on indicator

 

Hi,

I want to know how can be change the color of the candles based on some indicator. If it is possible how can we do it.

Any help is appreciated.