PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pine_adapter_probe.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "pine_host_reads.hpp"
4
5#include <array>
6#include <cstddef>
7
9
10// Pure reader: no unordered-map operator[], only size() and iteration over
11// values into std::array counters. No allocation, no mutation, nothing hashed.
12// The three slots are ExitLimit, ExitStop and ExitTrail, in that order.
14 bool present = false;
15 std::size_t cohort_sides = 0;
16 std::size_t unbound = 0;
17 std::array<std::size_t, 3> legs_by_origin_keys{};
18 std::array<std::size_t, 3> legs_by_origin_ids{};
19 std::size_t immediate_closes_keys = 0;
20 std::size_t immediate_closes_ids = 0;
21};
22
23LookupIndexCounts probe_lookup_index(const NativeHostCache* cache) noexcept;
24
25} // namespace pineforge::source::detail
LookupIndexCounts probe_lookup_index(const NativeHostCache *cache) noexcept