dotnetCHARTING Send comments on this topic.
MedianMovingAverage(String,Series,Series,Int32) Method
See Also 
dotnetCHARTING Namespace > StatisticalEngine Class > MedianMovingAverage Method : MedianMovingAverage(String,Series,Series,Int32) Method


seriesName
The name of the series.
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.
Returns the Median Moving Average of a given period of the data series provided for all possible periods for the data given.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function MedianMovingAverage( _
   ByVal seriesName As String, _
   ByVal highSeries As Series, _
   ByVal lowSeries As Series, _
   ByVal lengthOfMA As Integer _
) As Series
Visual Basic (Usage)Copy Code
Dim seriesName As String
Dim highSeries As Series
Dim lowSeries As Series
Dim lengthOfMA As Integer
Dim value As Series
 
value = StatisticalEngine.MedianMovingAverage(seriesName, highSeries, lowSeries, lengthOfMA)
C# 
public static Series MedianMovingAverage( 
   string seriesName,
   Series highSeries,
   Series lowSeries,
   int lengthOfMA
)

Parameters

seriesName
The name of the series.
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
ArgumentExceptionThrown if the series highSeries and lowSeries are of different lengths or if one of these arrays is empty.

See Also

© 2018 All Rights Reserved.