This script will give you the ability to put an EMA and/or SMA on the chart that changes color based upon the direction. Default at startup is EMA visible and SMA hidden. When the MA is moving up, it is green. When the MA is moving down, it is red. You can change the color to whatever you like.
RSI Ribbon + Candle
By Ricardo Santos and JR
In this chart rendering we are combining RSI and Moving Averages. For an added features we included colors to the candles and ribbons. Lime and green displays a strong bullish trend, yellow is caution or no trade, red and maroon are bearish trends. You can also find divergences using the ribbon.
Divergence