GetMedian()
GetMedian()
Definition
Returns the statistical median value of the specified series over the specified look-back period. This method sorts the values of the specified look back period in ascending order and returns the middle value.
- This method should NOT be confused with Median prices defined as (High + Low) / 2. This method returns the statistical median of a series.
- If an even number is passed as the look-back period, the average of the two middle values in the sorted values will be returned.
Method Return Value
A double value representing the median value of the series.
Syntax
GetMedian(ISeries\<double\> series, int lookBackPeriod)

