Median MA is a moving average, which is calculated using the median price for a given period.
A sorted array of prices for the specified period is used for calculating the moving average. A value from the array of prices with the following index is used:
The indicator has two input parameters:
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/19891