29 1'000'000'000LL, 10'000'000'000LL, 60'000'000'000LL};
45 [[nodiscard]]
double notional() const noexcept;
47 void add(std::int64_t markout, std::int64_t capture, std::int64_t
notional) noexcept {
56struct MarkoutHorizon {
71 [[nodiscard]] std::string
label()
const;
Definition backtest_config.hpp:39
constexpr std::int64_t kDefaultMarkoutHorizonsNs[]
Horizons measured by default, in simulated time.
Definition markout.hpp:30
Definition markout.hpp:33
double capture_quote() const noexcept
std::int64_t capture_raw
sum of s * (mid(t0) - price) over the same fills
Definition markout.hpp:35
double notional() const noexcept
double adverse_selection_quote() const noexcept
capture - markout: the part of the captured spread the mid took back.
double capture_bps() const noexcept
std::uint64_t fills
Definition markout.hpp:37
void add(std::int64_t markout, std::int64_t capture, std::int64_t notional) noexcept
Definition markout.hpp:49
double markout_quote() const noexcept
double adverse_selection_bps() const noexcept
double markout_bps() const noexcept
Notional-weighted basis points; 0 when no fill was measured.
std::int64_t markout_raw
sum of s * (mid(t0 + h) - price), quote currency
Definition markout.hpp:34
std::int64_t notional_raw
sum of |qty| * price over the same fills
Definition markout.hpp:36
MarkoutBucket maker
Definition markout.hpp:63
MarkoutBucket sell
Definition markout.hpp:62
std::uint64_t excluded_no_mid
the venue book had no two sides there (or at the fill)
Definition markout.hpp:71
MarkoutBucket total
Definition markout.hpp:60
std::uint64_t excluded_fills
Fills the run could not mark, split by cause.
Definition markout.hpp:69
std::string label() const
"1s", "250ms", "2m"
MarkoutBucket buy
Definition markout.hpp:61
std::int64_t horizon_ns
Definition markout.hpp:59
std::vector< MarkoutBucket > instrument
Indexed by instrument id, sized to the highest instrument that traded.
Definition markout.hpp:66
MarkoutBucket taker
Definition markout.hpp:64
std::uint64_t excluded_past_end
fill ts + horizon is after the last event of the run
Definition markout.hpp:70