Compute simple (SMA) and exponential (EMA) moving averages over a numeric series. Returns one value per input position — the first (window-1) SMA values are null since there isn't enough history. EMA uses the standard alpha = 2/(window+1) smoothin...