Nevron .NET Vision

In This Topic

Exponential Moving Average

In This Topic

Syntax

EMA(values; period)

Arguments

The 'values' argument must be an array.

The 'period' argument must be a constant greater or equal to 1.

The 'period' argument must be a constant greater or equal to 1.

Result

The result is an array.

Description

A Moving Average is an indicator that shows the average value of a security's price over a period of time. An exponential (or exponentially weighted) moving average is calculated by applying a percentage of today's price to yesterday's moving average value. Exponential moving averages place more weight on recent prices. The formula of the exponential moving average is:

*EMA[n] = values[n] * Exp_Percent + EMA[n-1] * (1 - Exp_Percent)*

The exponential percentage is calculated internally from the 'period' parameter with the following formula:

*Exp_Percent = 2 / (Time_Periods + 1)*

If you prefer to work with exponential percentages you can use the following formula to convert the percentages to time periods:

*Time_Periods = (2 / Exp_Percent) - 1*

Related Examples

Windows Forms: All Examples\Data Manipulation\Functions\Financial\Moving Averages