modular_trader.indicator.technical.stoch#

Classes#

STOCH

Stochastic Oscillator (STOCH)

Module Contents#

class modular_trader.indicator.technical.stoch.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

Inheritance diagram of modular_trader.indicator.technical.stoch.STOCH

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: