![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The backtest report: performance figures, costs, and every assumption and limitation of the run as a field (ReportCaveats). More...
#include "./engine.hpp"#include <algotradelib/analytics>#include <algotradelib/core>#include <chrono>#include <cmath>#include <cstddef>#include <cstdint>#include <initializer_list>#include <optional>#include <stdexcept>#include <string>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| struct | algotradelib::backtest::ReportCaveats |
| What a replay's figures assumed and did not account for. More... | |
| struct | algotradelib::backtest::Report |
| The summary of a replay; read halted_ and caveats_ before the figures. More... | |
| struct | algotradelib::backtest::MeasureInput |
| What a measure of a finished replay reads: the replay, its report, and its equity curve's levels and returns as the columns analytics::sharpe, analytics::sortino and analytics::max_drawdown take. More... | |
Namespaces | |
| namespace | algotradelib |
| The library: broker-neutral types (core), and the modules below. | |
| namespace | algotradelib::backtest |
| Replays a strategy over stored bars: fill and cost models, the replay ledger, and the report. | |
Functions | |
| Report | algotradelib::backtest::summarize (const ReplayResult &result, const NextBarFillModel &fills, std::optional< math::Scalar > periods_per_year=std::nullopt, math::Scalar risk_free=math::Scalar{0}) |
| Summarizes a replay into a Report. | |
| MeasureInput | algotradelib::backtest::measure_input (const ReplayResult &result, const NextBarFillModel &fills, std::optional< math::Scalar > periods_per_year=std::nullopt) |
| Builds the input a measure reads from a finished replay, calling summarize once. | |
| MeasureInput | algotradelib::backtest::measure_input (const ReplayResult &&, const NextBarFillModel &, std::optional< math::Scalar >=std::nullopt)=delete |
| Refused: the input would refer to a temporary result that is gone before the input is read. | |
| ReplayResult | algotradelib::backtest::chain_results (const std::vector< const ReplayResult * > &results) |
| Chains test replays into one result, so summarize and measure_input give the chain's figures. | |
The backtest report: performance figures, costs, and every assumption and limitation of the run as a field (ReportCaveats).
Needs a linear algebra backend (ATL_USE_EIGEN=ON); the engine itself does not.
Definition in file report.hpp.