Ema Change speed special
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © werrasd508

//@version=4
study("Ema Change speed special")

e1= input(title="e1", defval=400)
ema1= ema(close,e1)
ema1_1= ema(close[1],e1)
diff1=ema1-ema1_1
clr = diff1 > 0 ? color.green : color.red
hline(0, "Baseline", color.white)
plot(diff1, color=clr, linewidth=2)
