modular_trader.indicator.technical#
Submodules#
Classes#
Package Contents#
- class modular_trader.indicator.technical.RSI(period: int, input_indicator: modular_trader.indicator.technical.base.BaseIndicator | None = None, sampling_period: talipp.input.SamplingPeriodType | None = None, cache_size: int | None = None, name: str | None = None)#
Bases:
modular_trader.indicator.technical.base.BaseIndicator
,talipp.indicators.RSI
,modular_trader.indicator.technical.base.SingleInputMixin
Relative Strength Index (RSI)
The RSI is a technical indicator used to measure the strength of a stock or currency’s recent price action. It is an oscillator that computes the speed and change of price movements by comparing the magnitude of recent gains to recent losses. The RSI is usually plotted below an asset’s price chart and can have a reading from 0 to 100. Readings above 70 are considered overbought while readings below 30 are considered oversold.
- Args:
period (int): The period of the RSI. input_indicator (BaseIndicator | None): The input indicator. sampling_period (SamplingPeriodType | None): The sampling period. cache_size (int | None): The cache size. name (str | None): The name of the indicator.
- Parameters:
period (int)
input_indicator (modular_trader.indicator.technical.base.BaseIndicator | None)
sampling_period (talipp.input.SamplingPeriodType | None)
cache_size (int | None)
name (str | None)
- class modular_trader.indicator.technical.SMA(period: int, input_indicator: modular_trader.indicator.technical.base.BaseIndicator | None = None, sampling_period: talipp.input.SamplingPeriodType | None = None, cache_size: int | None = None, name: str | None = None)#
Bases:
modular_trader.indicator.technical.base.BaseIndicator
,talipp.indicators.SMA
,modular_trader.indicator.technical.base.SingleInputMixin
Simple Moving Average (SMA)
The Simple Moving Average (SMA) is a technical indicator that calculates the average of a security’s price over a specified number of periods. It is used to identify trends and patterns in the price movement of a security. The indicator is a moving average of the price over a specified number of periods.
- Args:
period (int): The number of periods to calculate the average over. input_indicator (BaseIndicator | None): The input indicator. sampling_period (SamplingPeriodType | None): The sampling period. cache_size (int | None): The cache size. name (str | None): The name of the indicator.
- Parameters:
period (int)
input_indicator (modular_trader.indicator.technical.base.BaseIndicator | None)
sampling_period (talipp.input.SamplingPeriodType | None)
cache_size (int | None)
name (str | None)
- class modular_trader.indicator.technical.STOCH(period: int, smoothing_period: int, input_indicator: modular_trader.indicator.technical.base.BaseIndicator | None = None, sampling_period: talipp.input.SamplingPeriodType | None = None, cache_size: int | None = None, name: str | None = None)#
Bases:
modular_trader.indicator.technical.base.BaseIndicator
,talipp.indicators.Stoch
,modular_trader.indicator.technical.base.MultipleInputMixin
Stochastic Oscillator (STOCH)
The Stochastic Oscillator is a momentum indicator that compares the closing price of a security to its price range over a given period of time. The Stochastic Oscillator is used to generate overbought and oversold signals.
- Args:
period (int): The period of the Stochastic Oscillator. smoothing_period (int): The smoothing period of the Stochastic Oscillator. input_indicator (BaseIndicator | None): The input indicator. sampling_period (SamplingPeriodType | None): The sampling period. cache_size (int | None): The cache size. name (str | None): The name of the indicator.
- Parameters:
period (int)
smoothing_period (int)
input_indicator (modular_trader.indicator.technical.base.BaseIndicator | None)
sampling_period (talipp.input.SamplingPeriodType | None)
cache_size (int | None)
name (str | None)