trix#
API documentation for pandas_ta.momentum.trix Python function.
- trix(close, length=None, signal=None, scalar=None, drift=None, offset=None, **kwargs)[source]#
Trix (TRIX)
TRIX is a momentum oscillator to identify divergences.
- Sources:
- Calculation:
- Default Inputs:
length=18, drift=1
EMA = Exponential Moving Average ROC = Rate of Change ema1 = EMA(close, length) ema2 = EMA(ema1, length) ema3 = EMA(ema2, length) TRIX = 100 * ROC(ema3, drift)
- Args:
close (pd.Series): Series of ‘close’s length (int): It’s period. Default: 18 signal (int): It’s period. Default: 9 scalar (float): How much to magnify. Default: 100 drift (int): The difference 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.