Visualize the Exponential Moving Average of a Security
The exponential moving average, like the moving average, shows the average value of a security over time. However, the exponential moving average applies weighting factors which decrease exponentially.
p = FinancialData["GOOG", "Price", {{2020, 1, 1}, {2020, 12, 31}}, "Value"];Show[
DateListPlot[p, PlotStyle -> Gray, Joined -> False], DateListPlot[ExponentialMovingAverage[p, 0.3]]
]