|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI 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_t * | authoritative_bars |
| Optional exchange bars; copied. | |
| int32_t | authoritative_n |
Length of authoritative_bars. | |
| uint32_t | gaps |
| 0 = barmerge.gaps_off, 1 = gaps_on. | |
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.
| uint32_t pf_native_subscription_v1::struct_size |
sizeof(pf_native_subscription_v1).
Definition at line 1082 of file native_c_api.h.
| uint32_t pf_native_subscription_v1::lookahead |
0 = barmerge.lookahead_off, 1 = lookahead_on.
Definition at line 1083 of file native_c_api.h.
| const char* pf_native_subscription_v1::tf |
Non-NULL timeframe literal.
Definition at line 1084 of file native_c_api.h.
| const pf_bar_t* pf_native_subscription_v1::authoritative_bars |
Optional exchange bars; copied.
Definition at line 1085 of file native_c_api.h.
| int32_t pf_native_subscription_v1::authoritative_n |
Length of authoritative_bars.
Definition at line 1086 of file native_c_api.h.
| uint32_t pf_native_subscription_v1::gaps |
0 = barmerge.gaps_off, 1 = gaps_on.
Definition at line 1087 of file native_c_api.h.