EMA -PA
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Bookmaster9

//@version=4
study(title="ema clouds by granolabar", shorttitle="EMA - PA", overlay=true)

ema13 = ema(close, 13)
ema21 = ema(close, 21)

ema13plot = plot(ema13, color=#2ecc71, transp=100, style=plot.style_line, linewidth=1, title="EMA(13)")
ema21plot = plot(ema21, color=#f00b0b, transp=100, style=plot.style_line, linewidth=1, title="EMA(21)")
fill(ema13plot, ema21plot, color=ema13 > ema21 ? color.lime : color.teal, transp=60, editable=true)

