modular_trader.framework.signal_generation.constant#

Classes#

ConstantSignalGeneration

Constant signal generator.

Module Contents#

class modular_trader.framework.signal_generation.constant.ConstantSignalGeneration#

Bases: modular_trader.framework.signal_generation.base.BaseSignalGeneration

Inheritance diagram of modular_trader.framework.signal_generation.constant.ConstantSignalGeneration

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:
Return type:

Iterable[modular_trader.signal.Signal]

direction: modular_trader.signal.SignalDirection = None#