PineForge
unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pine_reissue_binding.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// R5 lane V19-D: the test-only switch behind the adapter's re-issue binding.
4
//
5
// PineExecutionAdapter::submit_or_replace re-issues a source order through
6
// NativeStrategyHost::replace with ReplaceOptions::keep_binding set, so an
7
// exit leg bound to the position keeps its binding across the re-issue and the
8
// kernel records no CloseBoundEvent for it at its next point (the kernel binds
9
// it exactly as a plain replace would whenever the position has moved). The
10
// adapter witness (tests/test_adapter_live_state_equivalence.cpp,
11
// --reissue-binding) runs every script
12
// twice -- carrying, and with every re-issue a plain replace as before V19-D --
13
// and holds the two runs' transcripts equal bar for bar, CloseBoundEvents and
14
// the ordinals they shift aside. The shipped library never clears the switch.
15
// Not part of the installed API.
16
17
namespace
pineforge::source::detail
{
18
19
// While cleared, every re-issue is a plain replace (process-wide: set it only
20
// around single-threaded runs).
21
void
set_carry_reissue_bindings
(
bool
carry)
noexcept
;
22
bool
carry_reissue_bindings
() noexcept;
23
24
}
// namespace pineforge::source::detail
pineforge::source::detail
Definition
exit_payload_readback.hpp:52
pineforge::source::detail::carry_reissue_bindings
bool carry_reissue_bindings() noexcept
Definition
pine_adapter.cpp:3745
pineforge::source::detail::set_carry_reissue_bindings
void set_carry_reissue_bindings(bool carry) noexcept
Definition
pine_adapter.cpp:3742
src
source
pine_reissue_binding.hpp
PineForge unreleased — Apache-2.0 —
github.com/pineforge-4pass/pineforge-engine
—
pineforge.dev