PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::engine_script_run_v18::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 calendar span of the bucket's FIRST contributing input bar, read through the run's own session calendar; it is left zeroed when that lookup has no answer. For a series built from the auxiliary feed (NativeSeriesSource::AuxiliaryFeed) "contributing bar" reads "contributing FEED bar" here, while delivered_at_ms stays the accepted input bar the delivery rides on. completion is Confirmed when the bucket completed on its own last contributing input bar and LazyComplete when the next period's first input closed it. delivered_at_ms is the timestamp of the input bar the delivery rides on: the bucket's last contributing bar under lookahead_off and its first under lookahead_on.

Definition at line 740 of file native_host.hpp.

Field Documentation

◆ subscription

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

Definition at line 741 of file native_host.hpp.

◆ interval

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

Definition at line 742 of file native_host.hpp.

◆ completion

NativeCompletionKind pineforge::engine_script_run_v18::NativeTimeframeBarContext::completion = NativeCompletionKind::Confirmed

Definition at line 743 of file native_host.hpp.

◆ delivered_at_ms

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

Definition at line 744 of file native_host.hpp.


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