|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
|
Data Structures | |
| struct | pf_native_decision_v1 |
| Where the kernel is, presented to every callback. More... | |
| struct | pf_native_applied_v1 |
One applied execution, presented to on_applied. More... | |
| struct | pf_native_event_v1 |
| One recorded event, read back by strategy_native_events_v1. More... | |
| struct | pf_native_working_v1 |
| One live request, copied out by strategy_native_working_get_v1. More... | |
| struct | pf_native_open_lot_v1 |
One open physical lot, copied out by strategy_native_open_lot_get_v1 — the C spelling of NativeOpenLot (R5 gap lane N18): the book that strategy_native_position_v1 aggregates, lot by lot, marked at the price strategy_native_open_lot_count_v1 was given. More... | |
| struct | pf_native_state_v1 |
| The run's lifecycle and its typed failure. More... | |
| struct | pf_native_trail_state_v1 |
The trail projection of strategy_native_trail_state_v1 — the C spelling of NativeTrailState. More... | |
| struct | pf_native_margin_view_v1 |
The facts one margin hook is handed — the C spelling of NativeMarginRequirementView, NativeMarginCheckPoint and NativeMarginCallView, which differ only in which of these facts they carry. More... | |
| struct | pf_native_margin_decision_v1 |
The host's answer to one requirement view — NativeMarginDecision. More... | |
| struct | pf_native_close_view_v1 |
| The facts a host-sized CLOSE is resolved from, handed to pf_native_callbacks_v1::on_close_units. More... | |
| struct | pf_native_lot_excursion_v1 |
One closing lot's booking facts — ClosedLotExcursionFacts (RULING A48). More... | |
| struct | pf_native_risk_state_v1 |
The run's generic risk ledger — the C spelling of NativeRiskState (L9). More... | |
| struct | pf_native_request_v1 |
| One order request. More... | |
| struct | pf_native_subscription_v1 |
| One declared higher-timeframe series of pf_native_run_spec_ext_v1. More... | |
| struct | pf_native_run_spec_ext_v1 |
| The run-specification fields pf_native_run_spec_v1 predates. More... | |
| struct | pf_native_callbacks_v1 |
| The C host's strategy logic. More... | |
Macros | |
| #define | PF_NATIVE_REQUEST_V1_BASE_SIZE ((uint32_t)offsetof(pf_native_request_v1, anchor_rounding)) |
| Byte length of pf_native_request_v1 as the L13 lane first published it, before the anchored-leg tail was appended. | |
| #define | PF_NATIVE_REQUEST_V1_ANCHOR_SIZE ((uint32_t)offsetof(pf_native_request_v1, size_price)) |
| Byte length of pf_native_request_v1 with L7b's anchored-leg tail but without L3b's sizing-detail tail — the second of its three published layouts. | |
| #define | PF_NATIVE_RUN_SPEC_EXT_V1_BASE_SIZE ((uint32_t)offsetof(pf_native_run_spec_ext_v1, risk_has_max_drawdown)) |
Byte length of pf_native_run_spec_ext_v1 as the L13 lane first published it, before the risk_* tail was appended. | |
| #define | PF_NATIVE_RUN_SPEC_EXT_V1_RISK_SIZE ((uint32_t)offsetof(pf_native_run_spec_ext_v1, intrabar_kind)) |
| Byte length of pf_native_run_spec_ext_v1 with L9's risk tail but without N8's intrabar / policy tail — the second of its four published layouts. | |
| #define | PF_NATIVE_RUN_SPEC_EXT_V1_POLICY_SIZE ((uint32_t)offsetof(pf_native_run_spec_ext_v1, auxiliary_tf)) |
Byte length of pf_native_run_spec_ext_v1 with N8's intrabar / policy tail but before the auxiliary_* tail was appended — the third of its four published layouts. | |
| #define | PF_NATIVE_CALLBACKS_V1_BASE_SIZE ((uint32_t)offsetof(pf_native_callbacks_v1, on_recalculate)) |
| Byte length of pf_native_callbacks_v1 as the L13 lane first published it, before the six-hook tail was appended. | |
| #define PF_NATIVE_REQUEST_V1_BASE_SIZE ((uint32_t)offsetof(pf_native_request_v1, anchor_rounding)) |
Byte length of pf_native_request_v1 as the L13 lane first published it, before the anchored-leg tail was appended.
It is the offset of the first appended field, so it stays correct on every target this header builds for — it is not a literal. The runtime accepts this length as well as the current sizeof, which is what makes the tail additive rather than a layout break.
Definition at line 1060 of file native_c_api.h.
| #define PF_NATIVE_REQUEST_V1_ANCHOR_SIZE ((uint32_t)offsetof(pf_native_request_v1, size_price)) |
Byte length of pf_native_request_v1 with L7b's anchored-leg tail but without L3b's sizing-detail tail — the second of its three published layouts.
Defined as the offset of the first field appended after it, for the same reason PF_NATIVE_REQUEST_V1_BASE_SIZE is.
Definition at line 1067 of file native_c_api.h.
| #define PF_NATIVE_RUN_SPEC_EXT_V1_BASE_SIZE ((uint32_t)offsetof(pf_native_run_spec_ext_v1, risk_has_max_drawdown)) |
Byte length of pf_native_run_spec_ext_v1 as the L13 lane first published it, before the risk_* tail was appended.
It is the offset of the first appended field, so it stays correct on every target this header builds for — it is not a literal. The runtime accepts this length as well as the current sizeof, which is what makes the tail additive rather than a layout break.
Definition at line 1231 of file native_c_api.h.
| #define PF_NATIVE_RUN_SPEC_EXT_V1_RISK_SIZE ((uint32_t)offsetof(pf_native_run_spec_ext_v1, intrabar_kind)) |
Byte length of pf_native_run_spec_ext_v1 with L9's risk tail but without N8's intrabar / policy tail — the second of its four published layouts.
Definition at line 1236 of file native_c_api.h.
| #define PF_NATIVE_RUN_SPEC_EXT_V1_POLICY_SIZE ((uint32_t)offsetof(pf_native_run_spec_ext_v1, auxiliary_tf)) |
Byte length of pf_native_run_spec_ext_v1 with N8's intrabar / policy tail but before the auxiliary_* tail was appended — the third of its four published layouts.
It is the offset of the first auxiliary field, for the same reason PF_NATIVE_RUN_SPEC_EXT_V1_BASE_SIZE is an offset.
Definition at line 1243 of file native_c_api.h.
| #define PF_NATIVE_CALLBACKS_V1_BASE_SIZE ((uint32_t)offsetof(pf_native_callbacks_v1, on_recalculate)) |
Byte length of pf_native_callbacks_v1 as the L13 lane first published it, before the six-hook tail was appended.
It is the offset of the first appended field, so it stays correct on every target this header builds for — it is not a literal. strategy_native_host_create_v1 accepts this length as well as the current sizeof, which is what makes the tail additive rather than a layout break.
Definition at line 1370 of file native_c_api.h.