I want to combine this 2 scripts into one script. plz help me. like so 1 ) Simple Moving Avg Script
study(title="Simple Moving Averages", shorttitle="SMA Nakul", overlay=true)
outA = ema(close, 9)
outB = ema(close, 19)
outC = sma(close, 47)
outD = sma(close, 81)
outE = sma(close, 200)
plot(outA, color=yellow, title="EMA(9)")
plot(outB, color=fuchsia, title="EMA(19)")
plot(outC, color=lime, title="SMA(47)")
plot(outD, color=orange, title="SMA(81)")
plot(outE, color=red, title="SMA(200)")
And like so 2) Triple EMA Script
indicator(title="Triple EMA", shorttitle="TEMA", overlay=true, timeframe="",
timeframe_gaps=true)
length = input.int(9, minval=1)
tema1 = ta.ema(close, length)
tema2 = ta.ema(ema1, length)
tema3 = ta.ema(ema2, length)
out = 3 * (ema1 - ema2) + ema3
plot(out, "TEMA", color=#2962FF)