bb_ema_hamed
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © availableDirec3937

//@version=5
indicator(shorttitle="bb_ema", title="bb_ema", overlay=true, timeframe="", timeframe_gaps=true)
length = input.int(20, minval=1)
src = input(close, title="Source")
mult = input.float(2.0, minval=0.001, maxval=50, title="StdDev")
basis = ta.sma(src, length)
dev = mult * ta.stdev(src, length)
upper = basis + dev
lower = basis - dev
offset = input.int(0, "Offset", minval = -500, maxval = 500)
plot(basis, "Basis", color=#FF6D00, offset = offset)



len = input.int(6, minval=1, title="Length")

out = ta.ema(src, len)
plot(out, title="EMA", color=color.blue, offset=offset)
