Calculate Simple (SMA) and Exponential (EMA) Moving Averages for a series of data points.
Formula: SMA = Sum(P_n) / n | EMA = [Price_t × (2/n+1)] + [EMA_y × (1 - 2/n+1)]