modular_trader.framework.signal_generation.constant#
Classes#
Constant signal generator. |
Module Contents#
- class modular_trader.framework.signal_generation.constant.ConstantSignalGeneration#
Bases:
modular_trader.framework.signal_generation.base.BaseSignalGeneration
Constant signal generator.
Generates a signal for each symbol in the universe with a constant direction.
- run(context: modular_trader.context.Context, universe: modular_trader.universe.AssetUniverse) Iterable[modular_trader.signal.Signal] #
Returns an iterable of constant signals.
- Args:
context: Context universe: AssetUniverse
- Returns:
An iterable of signals.
- Parameters:
context (modular_trader.context.Context)
universe (modular_trader.universe.AssetUniverse)
- Return type:
Iterable[modular_trader.signal.Signal]
- direction: modular_trader.signal.SignalDirection = None#