eom#
- eom(high, low, close, volume, length=None, divisor=None, drift=None, offset=None, **kwargs)[source]#
Ease of Movement (EOM)
Ease of Movement is a volume based oscillator that is designed to measure the relationship between price and volume flucuating across a zero line.
- Sources:
https://www.tradingview.com/wiki/Ease_of_Movement_(EOM) https://www.motivewave.com/studies/ease_of_movement.htm https://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:ease_of_movement_emv
- Calculation:
- Default Inputs:
length=14, divisor=100000000, drift=1
SMA = Simple Moving Average hl_range = high - low distance = 0.5 * (high - high.shift(drift) + low - low.shift(drift)) box_ratio = (volume / divisor) / hl_range eom = distance / box_ratio EOM = SMA(eom, length)
- Args:
high (pd.Series): Series of ‘high’s low (pd.Series): Series of ‘low’s close (pd.Series): Series of ‘close’s volume (pd.Series): Series of ‘volume’s length (int): The short period. Default: 14 drift (int): The diff period. Default: 1 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.