Log in to see Cloud of Tags

Wealth-Lab Wiki

SMMA (Smoothed Moving Average Series)

RSS

Syntax

public SMMA(DataSeries ds, int period, string description) public static SMMA Series(DataSeries ds, int period)

Parameter Description

ds Data series
period Indicator lookback period

Description

A Smoothed Moving Average is sort of a blend between a Simple Moving Average and an Exponential Moving Average, only with a longer period applied (approximately, half the EMA period: e.g. a 20-period SMMA is almost equal to a 40-period EMA).

Calculation

The first value of this smoothed moving average is calculated as the simple moving average (SMA) with the same period. The second and succeeding moving averages are calculated according to this formula:

PREVSUM = SMMA(i-1) *N
SMMA(i) = (PREVSUM-SMMA(i-1)+CLOSE(i))/N

Where:
SUM1 — is the total sum of closing prices for N periods;
PREVSUM — is the smoothed sum of the previous bar;
SMMA1 — is the smoothed moving average of the first bar;
SMMA(i) — is the smoothed moving average of the current bar (except for the first one);
CLOSE(i) — is the current closing price;
N — is the smoothing period.

Reference


Example

No example currently available.

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.


ScrewTurn Wiki. Some of the icons created by FamFamFam.