Returns the value of the Linearly Weighted Moving Average(LWMA) for all periods for which sufficient historical data is provided.
Syntax
Parameters
- seriesName
- The name of the series which will be displayed on the chart, i.e. its label.
- s
- A series where the first element is the price on the earliest period, the second element is the price on the next earliest period and on so.
- elementValue
- Specifies the particular element value (for example High, Low, Close or Open of the FinancialEngine time series) which will be considered within this indicator evaluation. In particular, if you wish to use the element value high then you should pass the parameter High. In a similarly fashion if you wish to use the low, close or open, then you should pass the parameter Low, Close, Open, respectively.
- 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 priceSeries is empty or if its length is less than the lengthofMA . |
Remarks
See Also