100w EMA-SMA cloud, 200wSMA floor
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © delrioo

//@version=4
study("100w EMA-SMA cloud, 200wSMA floor", overlay = true)
a = ema(close,100)
b = sma(close,100)
c = sma(close,200)

outSma = security(syminfo.tickerid, "W", b)
outEma = security(syminfo.tickerid, "W", a)
outsmaa = security(syminfo.tickerid, "W", c)

smaPlot = plot(outSma, color=color.red, title="100w SMA")
emaPlot = plot(outEma, color=color.green, title="100w EMA")
smaaPlot = plot(outsmaa, color=color.black, title="200w SMA")


fill(emaPlot, smaPlot, color=color.new(color.orange, 75), fillgaps=true)
