Returns the value of the Linearly Weighted Moving Average (LWMA) for all periods for which sufficient historical data is provided.
Syntax
| Visual Basic (Declaration) |
|
Public Overloads Shared Function LinearlyWeightedMovingAverage( _
ByVal s As Series, _
ByVal lengthOfMA As Integer _
) As Series |
Parameters
- s
- A statistical series.
- lengthOfMA
- The number of periods over which the moving average is evaluated for each period.
Return Value
A series where the first term is the LWMA of length
lengthOfMA for the latest period, the second term is the LWMA of length
lengthOfMA for the previous period and so on.
Exceptions
| Exception |
Description |
| ArgumentException |
Thrown if the series s is empty or if its length is less than the lengthofMA. |
Remarks
See Also