run_backtest#
API documentation for tradeexecutor.backtest.backtest_runner.run_backtest Python function.
- run_backtest(setup, client=None, allow_missing_fees=False, execution_test_hook=None, execution_context=None)[source]#
Run a strategy backtest.
Loads strategy file, construct trading universe is real data downloaded with Trading Strategy client.
- Parameters:
allow_missing_fees – Legacy workaround
setup (BacktestSetup) –
execution_test_hook (Optional[ExecutionTestHook]) –
execution_context (tradeexecutor.strategy.execution_context.ExecutionContext | None) –
- Returns:
Tuple(the final state of the backtest, trading universe, debug dump)
- Return type: