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

//@version=5
indicator("Ma Momentum")
one = input.int(13, "MA1")
two = input.int(48, "MA2")
three = input.int(48, "Smooth Line")
smoothing = input.int(1, "Generall Smoothing")

sma1 = ta.ema(close, one)
sma2 = ta.ema(close, two)
macd = ((sma1 + sma2) - (sma1[1] + sma2[1])) / 2
smooth = ta.sma(macd, three)

plot(ta.ema(macd, smoothing), style = plot.style_columns, color = smooth > macd ? color.red : color.green)
plot(smooth)
