The two can be equated through their lags. The n-bar sma and the n-bar ema have the same lag. To get the n-bar ema, you just use a smoothing factor of 2/(n+1). The advantage of the ema is that you can use nonintegral values of n, and you can't do that for the sma. Among other things, you can...