EMA of RSI
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © sarah20
//@version=5
indicator("Ema of rsi", overlay=false)
rsi_input = input(title="rsi length", defval=14)
rsiema_input = input(title="ema length", defval=14)
rsi_data = ta.rsi(open, rsi_input)
rsiema_data = ta.ema(rsi_data, rsiema_input)
indicator = rsi_data - rsiema_data
plot(0)
colors = indicator > 0 ? color.green:color.red
plot(indicator, "Ema of Rsi", color=color.new(colors, 0))
