PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
compat/pine/order_birth.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <cstdint>
6
8
9// Historical Pine reach is source policy layered over generic immutable birth
10// facts. It is neither an additional native trigger state nor a second book.
11enum class HistoricalBirthReach : std::int32_t { Standard, ExtremeWaypoints };
12
13inline bool first_open_fill_evaluation(const OrderBirth& birth) noexcept {
14 return birth.from_fill() && birth.evaluation_ordinal() == 1
15 && birth.cursor().first_point();
16}
17
19 bool requested_trailing_exit) noexcept;
22}
23
24} // namespace pineforge::compat::pine
25
bool first_open_fill_evaluation(const OrderBirth &birth) noexcept
HistoricalBirthReach select_historical_birth_reach(const OrderBirth &birth, bool requested_trailing_exit) noexcept
bool historical_cascade_reach(HistoricalBirthReach reach) noexcept
compat::pine::HistoricalBirthReach PineHistoricalBirthReach