Simple Moving Average (SMA)
Averages price data over a specified period to identify trends.
Function Syntax
=SMA(data, period)
data
(array):
Range of columns containing the date, Open, high, Low, close, volume data.period
(number):
Number of periods (days) over which the RSI is calculated
Returns:
A two-column array of dates and their corresponding SMA values.
Output Example
Below is an example of the resulting array when applying the custom =SMA() function.