factory#

tradeexecutor.strategy.factory module.

Module description#

Strategy initialisation using factory design pattern.

Bind loaded strategies to the execution environment.

Classes#

StrategyFactory

A callable that creates a new strategy when loaded from an external script.

Functions#

make_runner_for_strategy_mod(mod)

Initialises the strategy script file and hooks it to the executor.