PineForge v0.13.1-379-g9b50973
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
 0 = barmerge.lookahead_off, 1 = lookahead_on.
 
const char * tf
 Non-NULL timeframe literal.
 
const pf_bar_tauthoritative_bars
 Optional exchange bars; copied.
 
int32_t authoritative_n
 Length of authoritative_bars.
 
uint32_t gaps
 0 = barmerge.gaps_off, 1 = gaps_on.
 

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 barmerge.gaps_off, and the struct's size and field offsets are unchanged. Any value but 0 or 1 is PF_NATIVE_E_TAG.

Definition at line 1081 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 1082 of file native_c_api.h.

◆ lookahead

uint32_t pf_native_subscription_v1::lookahead

0 = barmerge.lookahead_off, 1 = lookahead_on.

Definition at line 1083 of file native_c_api.h.

◆ tf

const char* pf_native_subscription_v1::tf

Non-NULL timeframe literal.

Definition at line 1084 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 1085 of file native_c_api.h.

◆ authoritative_n

int32_t pf_native_subscription_v1::authoritative_n

Length of authoritative_bars.

Definition at line 1086 of file native_c_api.h.

◆ gaps

uint32_t pf_native_subscription_v1::gaps

0 = barmerge.gaps_off, 1 = gaps_on.

Definition at line 1087 of file native_c_api.h.


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