|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI 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 |
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.
| std::size_t pineforge::engine_script_run_v18::NativeTimeframeBarContext::subscription = 0 |
Definition at line 741 of file native_host.hpp.
| native_calendar::NativeInterval pineforge::engine_script_run_v18::NativeTimeframeBarContext::interval {} |
Definition at line 742 of file native_host.hpp.
| NativeCompletionKind pineforge::engine_script_run_v18::NativeTimeframeBarContext::completion = NativeCompletionKind::Confirmed |
Definition at line 743 of file native_host.hpp.
| std::int64_t pineforge::engine_script_run_v18::NativeTimeframeBarContext::delivered_at_ms = 0 |
Definition at line 744 of file native_host.hpp.