PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pine_placement_retention.hpp
Go to the documentation of this file.
1#pragma once
2
3// R5 lane V19-E: the test-only switch behind the retired-row erasure.
4//
5// PineExecutionAdapter::erase_retired_rows erases, at every bar open, the
6// placement row of each request that is no longer working and that nothing
7// can read again. The equivalence witness
8// (tests/test_adapter_live_state_equivalence.cpp) runs every script twice --
9// erasing, and with every row retained as before V19-E -- and holds the two
10// runs' observable transcripts equal bar for bar. The shipped library never
11// sets the switch. Not part of the installed API.
12
13#include <cstdint>
14
16
17// While set, no placement row is erased (process-wide: set it only around
18// single-threaded runs).
19void set_retain_retired_rows(bool retain) noexcept;
20bool retain_retired_rows() noexcept;
21// How many rows the process's adapters have erased (a statistic).
22std::uint64_t retired_rows_erased() noexcept;
23
24} // namespace pineforge::source::detail
bool retain_retired_rows() noexcept
std::uint64_t retired_rows_erased() noexcept
void set_retain_retired_rows(bool retain) noexcept