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

//@version=4
study("Daily EMA + Daily EMA2", "MTO2", overlay = true)

//Inputs

length_d_ema = input(title = "Comprimento EMA Diaria", type = input.integer, defval = 20)
length_d_ema2 = input(title = "Comprimento EMA2 Diaria", type = input.integer, defval = 9)

//Calculo MAs

ema_d = security(syminfo.tickerid,"D", ema(close, length_d_ema))
ema2_d = security(syminfo.tickerid,"D", ema(close, length_d_ema2))

//Plot MAs

plot(ema_d, title = "EMA Diaria", color = color.yellow, linewidth = 3)
plot(ema2_d, title = "EMA Diaria2", color = color.blue, linewidth = 1)




