|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI 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. | |
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 1904 of file pineforge.h.
| uint32_t pf_output_event_v1_t::struct_version |
1
Definition at line 1905 of file pineforge.h.
| uint32_t pf_output_event_v1_t::size |
sizeof(pf_output_event_v1_t) as the runtime compiled it
Definition at line 1906 of file pineforge.h.
| uint64_t pf_output_event_v1_t::sequence |
1-based per run; once cleared, never issued again
Definition at line 1907 of file pineforge.h.
| int32_t pf_output_event_v1_t::output_index |
the output, as the manifest's outputs[].index
Definition at line 1908 of file pineforge.h.
| int32_t pf_output_event_v1_t::bar_index |
the row, 0-based
Definition at line 1909 of file pineforge.h.
| int64_t pf_output_event_v1_t::bar_open_ms |
the row's open, Unix ms
Definition at line 1910 of file pineforge.h.
| int64_t pf_output_event_v1_t::bar_close_ms |
the row's close, Unix ms; INT64_MIN when unknown
Definition at line 1911 of file pineforge.h.
| uint32_t pf_output_event_v1_t::ordinal_in_bar |
per output, from 0 within the row
Definition at line 1912 of file pineforge.h.
| uint32_t pf_output_event_v1_t::phase |
Definition at line 1913 of file pineforge.h.
| uint32_t pf_output_event_v1_t::confirmed |
0 when recorded on a partially finalized bar
Definition at line 1914 of file pineforge.h.
| uint32_t pf_output_event_v1_t::reserved0 |
0
Definition at line 1915 of file pineforge.h.
| double pf_output_event_v1_t::value |
the event's value; NaN = na
Definition at line 1916 of file pineforge.h.
| 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 1917 of file pineforge.h.
| 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 1919 of file pineforge.h.