Overload | Description |
---|---|
MedianMovingAverage(String,Series,ElementValue,Series,ElementValue,Int32) | Returns the Median Moving Average of a given period of the data series provided for all possible periods for the data given. |
MedianMovingAverage(Series,ElementValue,Series,ElementValue,Int32) | Returns the Median Moving Average of a given period of the data series provided for all possible periods for the data given. |
MedianMovingAverage(SeriesCollection,ElementValue,ElementValue,Int32) | Returns the Median Moving Average of a given period of the data series provided for all possible periods for the data given. |
Exception | Description |
---|---|
ArgumentException | Thrown if the series historicalHigh and historicalLow are of different lengths or if one of these arrays is empty. |
For example, if we are considering a trading asset and the periods considered are days
then by passing an series containing the closing daily prices of a given asset, and by choosing to
use the 5-day median moving average (i.e. passing a length of the MA of
5
), then we will
evaluate the Median Moving Average(GMA) for all days for which the closing price on that day and
the four previous days is known.
Remark: This indicator is particularly appropriate for traded assets where the opening and closing prices are unreliable. Such an instance are FTSE stocks which in the first hour of trading experience relatively low volumes and the closing prices are settled through an auction process. Hence for the FTSE market the quoted market price at the beginning and end of the market may not be indicative of where a given stock is trading within a given period. In such markets it may be more appropriate to use the Median Moving Average which will smooth out the effect of uncharacteristic shifts at the ends of the trading day.