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

One declared higher-timeframe series of pf_native_run_spec_ext_v1. More...

#include <native_c_api.h>

Data Fields

uint32_t struct_size
 sizeof(pf_native_subscription_v1).
 
uint32_t lookahead
 pf_native_lookahead_t.
 
const char * tf
 Non-NULL timeframe literal.
 
const pf_bar_t * authoritative_bars
 Optional exchange bars; copied.
 
int32_t authoritative_n
 Length of authoritative_bars.
 
uint32_t gaps
 pf_native_gaps_t.
 

Detailed Description

One declared higher-timeframe series of pf_native_run_spec_ext_v1.

A row is a series INSTANCE, not a period: several rows may carry the same tf, each delivered under its own index (the subscription argument of pf_native_callbacks_v1::on_timeframe_bar). Same-period rows may not carry DIFFERENT authoritative_bars.

gaps occupies the word this struct published as reserved0, which every layout required to be zero — so a caller that zero-fills the struct keeps PF_NATIVE_GAPS_HOLD, and the struct's size and field offsets are unchanged. A value outside either word's enumeration is PF_NATIVE_E_TAG.

Definition at line 2275 of file native_c_api.h.

Field Documentation

◆ struct_size

uint32_t pf_native_subscription_v1::struct_size

sizeof(pf_native_subscription_v1).

Definition at line 2276 of file native_c_api.h.

◆ lookahead

uint32_t pf_native_subscription_v1::lookahead

pf_native_lookahead_t.

Definition at line 2277 of file native_c_api.h.

◆ tf

const char* pf_native_subscription_v1::tf

Non-NULL timeframe literal.

Definition at line 2278 of file native_c_api.h.

◆ authoritative_bars

const pf_bar_t* pf_native_subscription_v1::authoritative_bars

Optional exchange bars; copied.

Definition at line 2279 of file native_c_api.h.

◆ authoritative_n

int32_t pf_native_subscription_v1::authoritative_n

Length of authoritative_bars.

Definition at line 2280 of file native_c_api.h.

◆ gaps

uint32_t pf_native_subscription_v1::gaps

pf_native_gaps_t.

Definition at line 2281 of file native_c_api.h.


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