![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
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...
#include <algotradelib/src/backtest/report.hpp>
Public Attributes | |
| const ReplayResult & | result_ |
| The replay: its curve (each point's time in equity_[i].at_), its executions and its counts. | |
| Report | report_ |
| summarize of the replay, with every built-in figure, halted_ and the caveats. | |
| math::Vector | levels_ |
| Each curve point's equity, in order. | |
| math::Vector | returns_ |
| Each curve point's period return, in order; missing() where the curve leaves it undefined (see EquityPoint::period_return_), which every analytics reduction skips. | |
| math::Scalar | periods_per_year_ |
| The periods per year given to measure_input, or missing() when none was given. | |
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.
Built by measure_input after the replay, never during it. It borrows the replay: result_ refers to the ReplayResult it was built from, so it must not outlive that result (for Backtester::result(), the engine). Nothing checks this. The deleted overload refuses only a temporary ReplayResult itself; an input built from make_engine().result(), or returned past its result, still dangles.
The levels and returns are copies, because the curve keeps each equity as an exact decimal inside a point.
Definition at line 580 of file report.hpp.
| math::Vector algotradelib::backtest::MeasureInput::levels_ |
Each curve point's equity, in order.
Definition at line 586 of file report.hpp.
| math::Scalar algotradelib::backtest::MeasureInput::periods_per_year_ |
The periods per year given to measure_input, or missing() when none was given.
Definition at line 593 of file report.hpp.
| Report algotradelib::backtest::MeasureInput::report_ |
summarize of the replay, with every built-in figure, halted_ and the caveats.
Definition at line 584 of file report.hpp.
| const ReplayResult& algotradelib::backtest::MeasureInput::result_ |
The replay: its curve (each point's time in equity_[i].at_), its executions and its counts.
Definition at line 582 of file report.hpp.
| math::Vector algotradelib::backtest::MeasureInput::returns_ |
Each curve point's period return, in order; missing() where the curve leaves it undefined (see EquityPoint::period_return_), which every analytics reduction skips.
Definition at line 591 of file report.hpp.