PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::engine_script_run_v18::NativeStateView Struct Reference

The flattened run state native_state() answers: the lifecycle kind, a borrowed pointer to the staged spec (nullptr when Unconfigured), the phase, how a Completed run ended, the durable failure, the consumed run-number high water and the monotonic decision floor. More...

#include <native_host.hpp>

Data Fields

NativeLifecycleKind kind = NativeLifecycleKind::Unconfigured
 
const NativeRunSpecspec = nullptr
 
NativeRunPhase phase = NativeRunPhase::Batch
 
NativeCompletion completion = NativeCompletion::BatchComplete
 
NativeFailure failure {}
 
uint64_t consumed_high_water = 0
 
int64_t decision_floor_ms = 0
 

Detailed Description

The flattened run state native_state() answers: the lifecycle kind, a borrowed pointer to the staged spec (nullptr when Unconfigured), the phase, how a Completed run ended, the durable failure, the consumed run-number high water and the monotonic decision floor.

The spec pointer is valid until the next configure or begin. C spelling: strategy_native_state_v1.

Definition at line 282 of file native_host.hpp.

Field Documentation

◆ kind

NativeLifecycleKind pineforge::engine_script_run_v18::NativeStateView::kind = NativeLifecycleKind::Unconfigured

Definition at line 283 of file native_host.hpp.

◆ spec

const NativeRunSpec* pineforge::engine_script_run_v18::NativeStateView::spec = nullptr

Definition at line 284 of file native_host.hpp.

◆ phase

NativeRunPhase pineforge::engine_script_run_v18::NativeStateView::phase = NativeRunPhase::Batch

Definition at line 285 of file native_host.hpp.

◆ completion

NativeCompletion pineforge::engine_script_run_v18::NativeStateView::completion = NativeCompletion::BatchComplete

Definition at line 286 of file native_host.hpp.

◆ failure

NativeFailure pineforge::engine_script_run_v18::NativeStateView::failure {}

Definition at line 287 of file native_host.hpp.

◆ consumed_high_water

uint64_t pineforge::engine_script_run_v18::NativeStateView::consumed_high_water = 0

Definition at line 288 of file native_host.hpp.

◆ decision_floor_ms

int64_t pineforge::engine_script_run_v18::NativeStateView::decision_floor_ms = 0

Definition at line 289 of file native_host.hpp.


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