![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
One point on a replay's equity curve: per period end, or per bar (EquityCurve). More...
#include <algotradelib/src/backtest/engine.hpp>
Public Attributes | |
| std::chrono::system_clock::time_point | at_ {} |
| The period end of the bar it was recorded after. | |
| Decimal64 | equity_ |
| Cash plus positions marked at the latest closes, in the replay's currency. | |
| math::Scalar | period_return_ {0} |
| The return since the previous point; missing() on the first point, after an unvalued bar, and after a point whose equity was zero or negative (a return on no capital is not defined). | |
One point on a replay's equity curve: per period end, or per bar (EquityCurve).
Definition at line 659 of file engine.hpp.
| std::chrono::system_clock::time_point algotradelib::backtest::EquityPoint::at_ {} |
The period end of the bar it was recorded after.
Definition at line 661 of file engine.hpp.
| Decimal64 algotradelib::backtest::EquityPoint::equity_ |
Cash plus positions marked at the latest closes, in the replay's currency.
Definition at line 663 of file engine.hpp.
| math::Scalar algotradelib::backtest::EquityPoint::period_return_ {0} |
The return since the previous point; missing() on the first point, after an unvalued bar, and after a point whose equity was zero or negative (a return on no capital is not defined).
A statistic over these returns skips the missing ones. summarize refuses its ratios for a run that reached non-positive equity before its last point; reducing a slice yourself, apply the same check to the equity each return is measured from.
Definition at line 672 of file engine.hpp.