#include <fastmm/backtest/backtest_runner.hpp>
◆ BacktestSession() [1/2]
| fastmm::bt::BacktestSession::BacktestSession |
( |
const BacktestConfig & |
cfg, |
|
|
MdSource * |
source, |
|
|
const ParamSchema * |
schema = nullptr, |
|
|
std::string_view |
strategy_meta = {} |
|
) |
| |
schema: the strategy's parameters, recorded in cfg.journal_out (may be null).
strategy_meta: key=value lines recorded in cfg.journal_out (Python strategies).
◆ ~BacktestSession()
| fastmm::bt::BacktestSession::~BacktestSession |
( |
| ) |
|
◆ BacktestSession() [2/2]
◆ operator=()
◆ deps()
| RunnerDeps & fastmm::bt::BacktestSession::deps |
( |
| ) |
|
|
inlinenoexcept |
◆ backend()
| sim::SimBackend & fastmm::bt::BacktestSession::backend |
( |
| ) |
|
|
inlinenoexcept |
◆ set_param_schedule()
Parameter updates delivered at simulated times during run() (not owned; may be null).
◆ set_slow_hooks()
| void fastmm::bt::BacktestSession::set_slow_hooks |
( |
const sim::SlowHooks & |
hooks | ) |
|
|
inlinenoexcept |
Code run at simulated times during run() (sim::SimDriver::set_slow_hooks).
◆ run()
| BacktestResult fastmm::bt::BacktestSession::run |
( |
const sim::EngineHooks & |
hooks, |
|
|
IEngineRunner * |
runner, |
|
|
std::string_view |
strategy_name |
|
) |
| |
Runs to the end of the data / horizon.
runner (may be null) supplies engine stats and, with [strategy] state_file, the strategy's state to write at the end.