make_factory_from_strategy_mod#

API documentation for tradeexecutor.strategy.bootstrap.make_factory_from_strategy_mod Python function.

make_factory_from_strategy_mod(mod)[source]#

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

Assumes the module has two functions

  • decide_trade

  • create_trading_universe

Hook this up the strategy execution system.

Parameters:

mod (StrategyModuleInformation) –

Return type:

StrategyFactory