PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
execution_close_scope.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <variant>
5
6namespace pineforge::execution {
7inline namespace close_scope_v1 {
8
9struct Book {};
10
11// Run-local opening provenance, not a unique individual fill-lot identity.
12// The trusted caller owns run identity; settlement checks the current cycle
13// and selects every surviving physical fragment of this incarnation.
15 std::uint64_t incarnation = 0;
16 std::int64_t cycle = 0;
17};
18
19using CloseScope = std::variant<Book, OpeningExposure>;
20
21static_assert(std::variant_size_v<CloseScope> == 2,
22 "CloseScope is Book|OpeningExposure; do not add alternatives");
23
24} // inline namespace close_scope_v1
25} // namespace pineforge::execution
std::variant< Book, OpeningExposure > CloseScope