PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pf_native_close_view_v1 Struct 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
 

Detailed Description

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 919 of file native_c_api.h.

Field Documentation

◆ struct_size

uint32_t pf_native_close_view_v1::struct_size

sizeof(pf_native_close_view_v1).

Definition at line 920 of file native_c_api.h.

◆ version

uint32_t pf_native_close_view_v1::version

PF_NATIVE_API_VERSION.

Definition at line 921 of file native_c_api.h.

◆ incarnation

uint64_t pf_native_close_view_v1::incarnation

The request being resolved.

Definition at line 922 of file native_c_api.h.

◆ scope_exposure_units

double pf_native_close_view_v1::scope_exposure_units

What the bound scope holds here.

Definition at line 923 of file native_c_api.h.

◆ default_resolved_price

double pf_native_close_view_v1::default_resolved_price

The price the kernel would settle at.

Definition at line 924 of file native_c_api.h.

◆ position_units

double pf_native_close_view_v1::position_units

The whole physical book, signed.

Definition at line 925 of file native_c_api.h.

◆ cursor_ordinal

uint64_t pf_native_close_view_v1::cursor_ordinal

Definition at line 926 of file native_c_api.h.

◆ cursor_effective_time_ms

int64_t pf_native_close_view_v1::cursor_effective_time_ms

Definition at line 927 of file native_c_api.h.

◆ is_buy

uint32_t pf_native_close_view_v1::is_buy

0/1: the side this candidate would trade on.

Definition at line 928 of file native_c_api.h.

◆ reserved0

uint32_t pf_native_close_view_v1::reserved0

Definition at line 929 of file native_c_api.h.


The documentation for this struct was generated from the following file: