Nevron .NET Vision Documentation
Modified Moving Average

MMA(values; period)
The 'values' argument must be an array.
The 'period' argument must be a constant greater or equal to 1.
The result is an array.

A Moving Average is an indicator that shows the average value of a security's price over a period of time. The Modified Moving Average is actually the same as the Exponential Moving Average, but with one difference - the exponential percentage is calculated with the following formula:

    Exp_Percent = 1 / (Time_Periods + 1)

For comparison the exponential percent for the EMA is:

    Exp_Percent = 2 / (Time_Periods + 1)

The formula for calculating the MMA is the same as the formula of the EMA:

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

The two functions are equivalent, but for different values of the period parameter. For example a 14-day MMA is the same as 27-day EMA. The MMA function is provided for convenience.

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



©2017. Nevron Software LLC.

Send Feedback