PineForge v1.5.0-rc.1-2-g90c12b98
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pf_selected_window_counts_v1 Struct Reference

Native-owned counts for the latest attempt, filled by strategy_selected_window_counts_v1(). More...

#include <selected_window.h>

Data Fields

uint32_t struct_size
 
uint32_t version
 
uint64_t run_generation
 
uint64_t attempt_serial
 
uint64_t attempt_generation
 
uint64_t fed_input_bars
 
uint64_t fed_script_bars
 
uint64_t preroll_input_bars
 
uint64_t preroll_script_bars
 
uint64_t window_input_bars
 
uint64_t window_script_bars
 

Detailed Description

Native-owned counts for the latest attempt, filled by strategy_selected_window_counts_v1().

run_generation, attempt_serial and attempt_generation are the three identities the caller correlates with pf_execution_observation_v1 (see execution_observer.h).

Counts are facts of actual successful primary input and script consumption, not caller-provided expectations, and a host's diagnostic presentation does not rewrite them. On success, fed_input_bars equals preroll_input_bars plus window_input_bars, and fed_script_bars equals preroll_script_bars plus window_script_bars.

Definition at line 46 of file selected_window.h.

Field Documentation

◆ struct_size

uint32_t pf_selected_window_counts_v1::struct_size

Definition at line 47 of file selected_window.h.

◆ version

uint32_t pf_selected_window_counts_v1::version

Definition at line 48 of file selected_window.h.

◆ run_generation

uint64_t pf_selected_window_counts_v1::run_generation

Definition at line 49 of file selected_window.h.

◆ attempt_serial

uint64_t pf_selected_window_counts_v1::attempt_serial

Definition at line 50 of file selected_window.h.

◆ attempt_generation

uint64_t pf_selected_window_counts_v1::attempt_generation

Definition at line 51 of file selected_window.h.

◆ fed_input_bars

uint64_t pf_selected_window_counts_v1::fed_input_bars

Definition at line 52 of file selected_window.h.

◆ fed_script_bars

uint64_t pf_selected_window_counts_v1::fed_script_bars

Definition at line 53 of file selected_window.h.

◆ preroll_input_bars

uint64_t pf_selected_window_counts_v1::preroll_input_bars

Definition at line 54 of file selected_window.h.

◆ preroll_script_bars

uint64_t pf_selected_window_counts_v1::preroll_script_bars

Definition at line 55 of file selected_window.h.

◆ window_input_bars

uint64_t pf_selected_window_counts_v1::window_input_bars

Definition at line 56 of file selected_window.h.

◆ window_script_bars

uint64_t pf_selected_window_counts_v1::window_script_bars

Definition at line 57 of file selected_window.h.


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