|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI 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 NativeRunSpec * | spec = nullptr |
| NativeRunPhase | phase = NativeRunPhase::Batch |
| NativeCompletion | completion = NativeCompletion::BatchComplete |
| NativeFailure | failure {} |
| uint64_t | consumed_high_water = 0 |
| int64_t | decision_floor_ms = 0 |
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.
| NativeLifecycleKind pineforge::engine_script_run_v18::NativeStateView::kind = NativeLifecycleKind::Unconfigured |
Definition at line 283 of file native_host.hpp.
| const NativeRunSpec* pineforge::engine_script_run_v18::NativeStateView::spec = nullptr |
Definition at line 284 of file native_host.hpp.
| NativeRunPhase pineforge::engine_script_run_v18::NativeStateView::phase = NativeRunPhase::Batch |
Definition at line 285 of file native_host.hpp.
| NativeCompletion pineforge::engine_script_run_v18::NativeStateView::completion = NativeCompletion::BatchComplete |
Definition at line 286 of file native_host.hpp.
| NativeFailure pineforge::engine_script_run_v18::NativeStateView::failure {} |
Definition at line 287 of file native_host.hpp.
| uint64_t pineforge::engine_script_run_v18::NativeStateView::consumed_high_water = 0 |
Definition at line 288 of file native_host.hpp.
| int64_t pineforge::engine_script_run_v18::NativeStateView::decision_floor_ms = 0 |
Definition at line 289 of file native_host.hpp.