BacktestResult#

API documentation for tradeexecutor.backtest.backtest_runner.BacktestResult Python class in Trading Strategy framework.

class BacktestResult[source]#

Bases: object

What we have after backtest

__init__(state, strategy_universe, diagnostics_data, indicators, strategy_module=None)#
Parameters:
Return type:

None

Methods

__init__(state, strategy_universe, ...[, ...])

Attributes

state

The resulting state after the backtest run

strategy_universe

Universe we loaded

diagnostics_data

Python bag of values for internal testing

indicators

Indicators we calculated for the backtest

strategy_module

Loaded strategy module.

state: State#

The resulting state after the backtest run

strategy_universe: TradingStrategyUniverse#

Universe we loaded

diagnostics_data: dict#

Python bag of values for internal testing

indicators: StrategyInputIndicators#

Indicators we calculated for the backtest

strategy_module: tradeexecutor.strategy.strategy_module.StrategyModuleInformation | None#

Loaded strategy module.

Not available if we run an inline test.

__init__(state, strategy_universe, diagnostics_data, indicators, strategy_module=None)#
Parameters:
Return type:

None