Instead of a moving average, median value is calculated using sort function.
What is the Median?
The median tells you where the middle of a data set is.
To find the median, first order the numbers from smallest to largest. Then find the middle number. For example, the middle for this set of numbers is 5, because 5 is right in the middle:
1, 2, 3, 5, 6, 7, 9.