|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
The facts a host-sized CLOSE is resolved from, handed to pf_native_callbacks_v1::on_close_units. More...
#include <native_c_api.h>
Data Fields | |
| uint32_t | struct_size |
| sizeof(pf_native_close_view_v1). | |
| uint32_t | version |
| PF_NATIVE_API_VERSION. | |
| uint64_t | incarnation |
| The request being resolved. | |
| double | scope_exposure_units |
| What the bound scope holds here. | |
| double | default_resolved_price |
| The price the kernel would settle at. | |
| double | position_units |
| The whole physical book, signed. | |
| uint64_t | cursor_ordinal |
| int64_t | cursor_effective_time_ms |
| uint32_t | is_buy |
| 0/1: the side this candidate would trade on. | |
| uint32_t | reserved0 |
The facts a host-sized CLOSE is resolved from, handed to pf_native_callbacks_v1::on_close_units.
It is the UNITS half of NativeExecutionTermsFacts, and only that half: scope_exposure_units is what the bound scope holds at this candidate — for a cohort close, the live units of the roster's own openings and nothing else. The price half and the opening shape stay the kernel's.
Definition at line 1897 of file native_c_api.h.
| uint32_t pf_native_close_view_v1::struct_size |
sizeof(pf_native_close_view_v1).
Definition at line 1898 of file native_c_api.h.
| uint32_t pf_native_close_view_v1::version |
PF_NATIVE_API_VERSION.
Definition at line 1899 of file native_c_api.h.
| uint64_t pf_native_close_view_v1::incarnation |
The request being resolved.
Definition at line 1900 of file native_c_api.h.
| double pf_native_close_view_v1::scope_exposure_units |
What the bound scope holds here.
Definition at line 1901 of file native_c_api.h.
| double pf_native_close_view_v1::default_resolved_price |
The price the kernel would settle at.
Definition at line 1902 of file native_c_api.h.
| double pf_native_close_view_v1::position_units |
The whole physical book, signed.
Definition at line 1903 of file native_c_api.h.
| uint64_t pf_native_close_view_v1::cursor_ordinal |
Definition at line 1904 of file native_c_api.h.
| int64_t pf_native_close_view_v1::cursor_effective_time_ms |
Definition at line 1905 of file native_c_api.h.
| uint32_t pf_native_close_view_v1::is_buy |
0/1: the side this candidate would trade on.
Definition at line 1906 of file native_c_api.h.
| uint32_t pf_native_close_view_v1::reserved0 |
Definition at line 1907 of file native_c_api.h.