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

One recorded event, copied by strategy_outputs_event_get. More...

#include <pineforge.h>

Data Fields

uint32_t struct_version
 1
 
uint32_t size
 sizeof(pf_output_event_v1_t) as the runtime compiled it
 
uint64_t sequence
 1-based per run; once cleared, never issued again
 
int32_t output_index
 the output, as the manifest's outputs[].index
 
int32_t bar_index
 the row, 0-based
 
int64_t bar_open_ms
 the row's open, Unix ms
 
int64_t bar_close_ms
 the row's close, Unix ms; INT64_MIN when unknown
 
uint32_t ordinal_in_bar
 per output, from 0 within the row
 
uint32_t phase
 a pf_output_phase_t
 
uint32_t confirmed
 0 when recorded on a partially finalized bar
 
uint32_t reserved0
 0
 
double value
 the event's value; NaN = na
 
uint64_t message_hash64
 FNV-1a 64 of every byte the module recorded as the message; 0 without one.
 
const char * message
 NUL-terminated, or NULL without one: a message holding a NUL byte reads to its first NUL, while message_hash64 covers every recorded byte.
 

Detailed Description

One recorded event, copied by strategy_outputs_event_get.

Every 8-byte field sits at a multiple of 8, so the 72 bytes before message are laid out alike on every target.

Definition at line 2020 of file pineforge.h.

Field Documentation

◆ struct_version

uint32_t pf_output_event_v1_t::struct_version

1

Definition at line 2021 of file pineforge.h.

◆ size

uint32_t pf_output_event_v1_t::size

sizeof(pf_output_event_v1_t) as the runtime compiled it

Definition at line 2022 of file pineforge.h.

◆ sequence

uint64_t pf_output_event_v1_t::sequence

1-based per run; once cleared, never issued again

Definition at line 2023 of file pineforge.h.

◆ output_index

int32_t pf_output_event_v1_t::output_index

the output, as the manifest's outputs[].index

Definition at line 2024 of file pineforge.h.

◆ bar_index

int32_t pf_output_event_v1_t::bar_index

the row, 0-based

Definition at line 2025 of file pineforge.h.

◆ bar_open_ms

int64_t pf_output_event_v1_t::bar_open_ms

the row's open, Unix ms

Definition at line 2026 of file pineforge.h.

◆ bar_close_ms

int64_t pf_output_event_v1_t::bar_close_ms

the row's close, Unix ms; INT64_MIN when unknown

Definition at line 2027 of file pineforge.h.

◆ ordinal_in_bar

uint32_t pf_output_event_v1_t::ordinal_in_bar

per output, from 0 within the row

Definition at line 2028 of file pineforge.h.

◆ phase

uint32_t pf_output_event_v1_t::phase

a pf_output_phase_t

Definition at line 2029 of file pineforge.h.

◆ confirmed

uint32_t pf_output_event_v1_t::confirmed

0 when recorded on a partially finalized bar

Definition at line 2030 of file pineforge.h.

◆ reserved0

uint32_t pf_output_event_v1_t::reserved0

0

Definition at line 2031 of file pineforge.h.

◆ value

double pf_output_event_v1_t::value

the event's value; NaN = na

Definition at line 2032 of file pineforge.h.

◆ message_hash64

uint64_t pf_output_event_v1_t::message_hash64

FNV-1a 64 of every byte the module recorded as the message; 0 without one.

Definition at line 2033 of file pineforge.h.

◆ message

const char* pf_output_event_v1_t::message

NUL-terminated, or NULL without one: a message holding a NUL byte reads to its first NUL, while message_hash64 covers every recorded byte.

Borrowed until the next call that runs, streams or clears on the handle

Definition at line 2035 of file pineforge.h.


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