median#

median(close, length=None, offset=None, **kwargs)[source]#

Rolling Median

Rolling Median of over ‘n’ periods. Sibling of a Simple Moving Average.

Sources:

https://www.incrediblecharts.com/indicators/median_price.php

Calculation:
Default Inputs:

length=30

MEDIAN = close.rolling(length).median()

Args:

close (pd.Series): Series of ‘close’s length (int): It’s period. Default: 30 offset (int): How many periods to offset the result. Default: 0

Kwargs:

fillna (value, optional): pd.DataFrame.fillna(value) fill_method (value, optional): Type of fill method

Returns:

pd.Series: New feature generated.