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

The calendar interval of the bucket delivered to pf_native_callbacks_v1::on_timeframe_bar. More...

#include <native_c_api.h>

Data Fields

uint32_t struct_size
 sizeof(pf_native_timeframe_interval_v1).
 
uint32_t version
 PF_NATIVE_API_VERSION.
 
int64_t open_ms
 
int64_t eligible_open_ms
 
int64_t last_traded_close_ms
 
int64_t next_period_open_ms
 
int64_t next_input_open_ms
 

Detailed Description

The calendar interval of the bucket delivered to pf_native_callbacks_v1::on_timeframe_bar.

The query that fills this POD is valid only while that callback is running; outside it the runtime answers PF_NATIVE_E_STATE. A zero interval is a valid kernel answer when the bucket had no calendar lookup.

Definition at line 1557 of file native_c_api.h.

Field Documentation

◆ struct_size

uint32_t pf_native_timeframe_interval_v1::struct_size

sizeof(pf_native_timeframe_interval_v1).

Definition at line 1558 of file native_c_api.h.

◆ version

uint32_t pf_native_timeframe_interval_v1::version

PF_NATIVE_API_VERSION.

Definition at line 1559 of file native_c_api.h.

◆ open_ms

int64_t pf_native_timeframe_interval_v1::open_ms

Definition at line 1560 of file native_c_api.h.

◆ eligible_open_ms

int64_t pf_native_timeframe_interval_v1::eligible_open_ms

Definition at line 1561 of file native_c_api.h.

◆ last_traded_close_ms

int64_t pf_native_timeframe_interval_v1::last_traded_close_ms

Definition at line 1562 of file native_c_api.h.

◆ next_period_open_ms

int64_t pf_native_timeframe_interval_v1::next_period_open_ms

Definition at line 1563 of file native_c_api.h.

◆ next_input_open_ms

int64_t pf_native_timeframe_interval_v1::next_input_open_ms

Definition at line 1564 of file native_c_api.h.


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