tth period, and the second value corresponds to the value of the asset in the t-1-th
period and so on. Evaluates the (x-day) Exponentially Weighted Moving Average(EWMA) of a time
series provided where x is the length of the time series array which is provided as a
parameter, for all periods for which sufficient data is provided.
[Visual Basic]
Overloads Public Shared Function ExponentiallyWeightedMovingAverage( _
ByVal s As Series, _
ByVal elementValue As ElementValue, _
ByVal smoothingFactor As Double, _
ByVal lengthOfMA As Integer _
) As Series[C#]
public static Series ExponentiallyWeightedMovingAverage(
Series s,
ElementValue elementValue,
double smoothingFactor,
int lengthOfMA
);tth period, and the second value corresponds to the value of the asset in the t-1-th
period and so on.A series where the first term is the EWMA for the most recent period, the second term is the EWMA for the previous period and so on.
| Exception | Description |
|---|---|
| ArgumentException | Thrown if the Series is empty or if the value given for the smoothing factor lies outside the closed range [0,1]. |
FinancialEngine Class | FinancialEngine Members | Overload List
2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.