Simple Moving Average - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The simple moving average (SMA) is the most basic type of moving average. It is calculated by taking the sum of a set of data points and dividing by the number of data points in the set. The formula for an SMA is:

SMA = (Sum of data over a specified number of periods) / (Number of periods)

For example, if you wanted to calculate a 10-day moving average of a stock's price, you would add up the closing prices of the stock over the past 10 days and divide by 10.