PineForge v1.4.0-4-g873b25da
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::engine_script_run_v19::NativeTimeframeBarContext Struct Reference

One completed higher-timeframe bucket of a declared subscription (NativeRunSpec::subscriptions), presented before the calculation of the input bar it is delivered on. More...

#include <native_host.hpp>

Data Fields

std::size_t subscription = 0
 
native_calendar::NativeInterval interval {}
 
NativeCompletionKind completion = NativeCompletionKind::Confirmed
 
std::int64_t delivered_at_ms = 0
 

Detailed Description

One completed higher-timeframe bucket of a declared subscription (NativeRunSpec::subscriptions), presented before the calculation of the input bar it is delivered on.

subscription indexes NativeRunSpec::subscriptions. interval is the bucket's own calendar interval: its period at the subscription's timeframe, located by its first contributing bar through the run's session calendar, and left zeroed when that lookup has no answer. For a series built from the auxiliary feed (NativeSeriesSource::AuxiliaryFeed) a contributing bar is a FEED bar, while delivered_at_ms stays the accepted input it rides on. completion is Confirmed when the bucket completed on its own last contributing input bar, a bucket the session close clips included, and LazyComplete when the next period's first input closed it (a feed hole over its last slot). delivered_at_ms is the input bar the delivery rides on: under lookahead_off the input that completed the bucket (its own last contributing bar when Confirmed, the next period's first input bar when LazyComplete); under lookahead_on the bucket's first contributing bar.

Definition at line 807 of file native_host.hpp.

Field Documentation

◆ subscription

std::size_t pineforge::engine_script_run_v19::NativeTimeframeBarContext::subscription = 0

◆ interval

native_calendar::NativeInterval pineforge::engine_script_run_v19::NativeTimeframeBarContext::interval {}

◆ completion

NativeCompletionKind pineforge::engine_script_run_v19::NativeTimeframeBarContext::completion = NativeCompletionKind::Confirmed

Definition at line 810 of file native_host.hpp.

◆ delivered_at_ms

std::int64_t pineforge::engine_script_run_v19::NativeTimeframeBarContext::delivered_at_ms = 0

Definition at line 811 of file native_host.hpp.


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