.netCHARTING v10.5 Documentation


dotnetCHARTING Namespace > StatisticalEngine Class > MedianMovingAverage Method : MedianMovingAverage(Series,Series,Int32) Method
A series where the elements corresponds to the highest recorded values.
A series where the elements corresponds to the lowest recorded values.
The number of periods considered within the evaluation of the moving average of each of the days on which it can be evaluated.
MedianMovingAverage(Series,Series,Int32) Method
Returns the Median Moving Average of a given period of the data series provided for all possible periods for the data given.
Syntax
'Declaration
 
Public Overloads Shared Function MedianMovingAverage( _
   ByVal highSeries As Series, _
   ByVal lowSeries As Series, _
   ByVal lengthOfMA As Integer _
) As Series
'Usage
 
Dim highSeries As Series
Dim lowSeries As Series
Dim lengthOfMA As Integer
Dim value As Series
 
value = StatisticalEngine.MedianMovingAverage(highSeries, lowSeries, lengthOfMA)
public static Series MedianMovingAverage( 
   Series highSeries,
   Series lowSeries,
   int lengthOfMA
)

Parameters

highSeries
A series where the elements corresponds to the highest recorded values.
lowSeries
A series where the elements corresponds to the lowest recorded values.
lengthOfMA
The number of periods considered within the evaluation of the moving average of each of the days on which it can be evaluated.

Return Value

A series where the first term is the value of the Median Moving Average for the most recent period, the second term is the value of the Median Moving Average for the previous period and so on.
Exceptions
ExceptionDescription
Thrown if the series highSeries and lowSeries are of different lengths or if one of these arrays is empty.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also