Combined MAs
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © okan_akarsu1

//@version=5
indicator("Combined MAs", shorttitle="Combined MAs", overlay=true)

// EMA calculations
ema5 = ta.ema(close, 5)
ema13 = ta.ema(close, 13)
ema21 = ta.ema(close, 21)
ema50 = ta.ema(close, 50)
// Moving Averages
ma20 = ta.sma(close, 20)
ma50 = ta.sma(close, 50)
ma100 = ta.sma(close, 100)
ma200 = ta.sma(close, 200)
ma250 = ta.sma(close, 250)

plot(ema5, color=color.blue, title="EMA 5")
plot(ema13, color=color.red, title="EMA 13")
plot(ema21, color=color.black, title="EMA 21")
plot(ema50, color=color.gray, title="EMA 50")

// Plot MAs
plot(ma20, color=color.yellow, title="MA 50")
plot(ma50, color=color.green, title="MA 50")
plot(ma100, color=color.orange, title="MA 100")
plot(ma200, color=color.purple, title="MA 200")


