apo#

API documentation for pandas_ta.momentum.apo Python function.

apo(close, fast=None, slow=None, mamode=None, talib=None, offset=None, **kwargs)[source]#

Absolute Price Oscillator (APO)

The Absolute Price Oscillator is an indicator used to measure a security’s momentum. It is simply the difference of two Exponential Moving Averages (EMA) of two different periods. Note: APO and MACD lines are equivalent.

Sources:

https://www.tradingtechnologies.com/xtrader-help/x-study/technical-indicator-definitions/absolute-price-oscillator-apo/

Calculation:
Default Inputs:

fast=12, slow=26

SMA = Simple Moving Average APO = SMA(close, fast) - SMA(close, slow)

Args:

close (pd.Series): Series of ‘close’s fast (int): The short period. Default: 12 slow (int): The long period. Default: 26 mamode (str): See `help(ta.ma)`. Default: ‘sma’ talib (bool): If TA Lib is installed and talib is True, Returns the TA Lib

version. Default: True

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.