Xceed Chart for WinForms v4.4 Documentation
Simple Moving Average
Welcome to Xceed Chart for WinForms v4.4 > User Guide > Data Manipulation > Functions > Simple Moving Average

Syntax

SMA(A1; period)

Arguments

A1 must be an array.
The 'period' argument must be a constant greater than or equal to 1.

Result

The result is an array. The first 'period' elements are marked as invalid.

Description

A Moving Average is an indicator that shows the average value of a security's price over a period of time. A simple, or arithmetic, moving average is calculated by adding the price of the security for a number of time periods (e.g., 12 days) and then dividing this total by the number of time periods. The result is the average price of the security over the time period. Simple moving averages give equal weight to each daily price.

Related Examples

Windows Forms: Data Manipulation\Functions\Moving Averages