Sma (x, n, m): the n-day moving average of x, where m is the weight, such as y = (x * m+y' * (n-m))/n.
MA is a simple moving average.