PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pf_native_anchored_level_view_v1 Struct Reference

One anchored leg's materialization, handed to pf_native_callbacks_v1::on_anchored_level exactly once, before its armed event — NativeAnchoredLevelView. More...

#include <native_c_api.h>

Data Fields

uint32_t struct_size
 sizeof(pf_native_anchored_level_view_v1).
 
uint32_t version
 PF_NATIVE_API_VERSION.
 
uint64_t owner
 The request whose fill arms the leg.
 
uint64_t owner_applied_ordinal
 That fill's applied execution.
 
uint64_t owner_lot_incarnation
 The lot it opened.
 
double owner_fill_price
 Its resolved price.
 
uint64_t leg
 The anchored request.
 
uint32_t leg_side
 pf_native_side_t the leg trades on.
 
uint32_t trigger
 pf_native_anchored_trigger_t.
 
double offset
 The anchor's offset, price units.
 
double price_tick
 The run's tick, 0 when none.
 
double kernel_level
 The level the kernel would install.
 
uint64_t owner_cursor_ordinal
 
int64_t owner_cursor_effective_time_ms
 
double owner_cursor_t
 
int32_t owner_cursor_interval_index
 
uint8_t owner_cursor_provenance
 pf_native_price_provenance_t.
 
uint8_t owner_cursor_path_phase
 pf_native_path_phase_t.
 
uint8_t reserved0 [2]
 Always 0.
 

Detailed Description

One anchored leg's materialization, handed to pf_native_callbacks_v1::on_anchored_level exactly once, before its armed event — NativeAnchoredLevelView.

kernel_level is fill + offset after the anchor's own rounding: what the host answers DEFAULT to.

Definition at line 2046 of file native_c_api.h.

Field Documentation

◆ struct_size

uint32_t pf_native_anchored_level_view_v1::struct_size

sizeof(pf_native_anchored_level_view_v1).

Definition at line 2047 of file native_c_api.h.

◆ version

uint32_t pf_native_anchored_level_view_v1::version

PF_NATIVE_API_VERSION.

Definition at line 2048 of file native_c_api.h.

◆ owner

uint64_t pf_native_anchored_level_view_v1::owner

The request whose fill arms the leg.

Definition at line 2049 of file native_c_api.h.

◆ owner_applied_ordinal

uint64_t pf_native_anchored_level_view_v1::owner_applied_ordinal

That fill's applied execution.

Definition at line 2050 of file native_c_api.h.

◆ owner_lot_incarnation

uint64_t pf_native_anchored_level_view_v1::owner_lot_incarnation

The lot it opened.

Definition at line 2051 of file native_c_api.h.

◆ owner_fill_price

double pf_native_anchored_level_view_v1::owner_fill_price

Its resolved price.

Definition at line 2052 of file native_c_api.h.

◆ leg

uint64_t pf_native_anchored_level_view_v1::leg

The anchored request.

Definition at line 2053 of file native_c_api.h.

◆ leg_side

uint32_t pf_native_anchored_level_view_v1::leg_side

pf_native_side_t the leg trades on.

Definition at line 2054 of file native_c_api.h.

◆ trigger

uint32_t pf_native_anchored_level_view_v1::trigger

pf_native_anchored_trigger_t.

Definition at line 2055 of file native_c_api.h.

◆ offset

double pf_native_anchored_level_view_v1::offset

The anchor's offset, price units.

Definition at line 2056 of file native_c_api.h.

◆ price_tick

double pf_native_anchored_level_view_v1::price_tick

The run's tick, 0 when none.

Definition at line 2057 of file native_c_api.h.

◆ kernel_level

double pf_native_anchored_level_view_v1::kernel_level

The level the kernel would install.

Definition at line 2058 of file native_c_api.h.

◆ owner_cursor_ordinal

uint64_t pf_native_anchored_level_view_v1::owner_cursor_ordinal

Definition at line 2059 of file native_c_api.h.

◆ owner_cursor_effective_time_ms

int64_t pf_native_anchored_level_view_v1::owner_cursor_effective_time_ms

Definition at line 2060 of file native_c_api.h.

◆ owner_cursor_t

double pf_native_anchored_level_view_v1::owner_cursor_t

Definition at line 2061 of file native_c_api.h.

◆ owner_cursor_interval_index

int32_t pf_native_anchored_level_view_v1::owner_cursor_interval_index

Definition at line 2062 of file native_c_api.h.

◆ owner_cursor_provenance

uint8_t pf_native_anchored_level_view_v1::owner_cursor_provenance

pf_native_price_provenance_t.

Definition at line 2063 of file native_c_api.h.

◆ owner_cursor_path_phase

uint8_t pf_native_anchored_level_view_v1::owner_cursor_path_phase

pf_native_path_phase_t.

Definition at line 2064 of file native_c_api.h.

◆ reserved0

uint8_t pf_native_anchored_level_view_v1::reserved0[2]

Always 0.

Definition at line 2065 of file native_c_api.h.


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