median

median(series, period)
Parameters
  • series (series) – Input series

  • period (integer) – Input period

Returns

series

Returns the median of the last period values in the series.

Same as

percentile_nearest_rank (series, period, 50)