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

Borrowed begin-call facts. More...

#include <native_host.hpp>

Data Fields

const Barbars = nullptr
 
int n = 0
 
std::string input_tf
 
std::string script_tf
 
bool bar_magnifier = false
 
int magnifier_samples = 4
 
MagnifierDistribution magnifier_distribution = MagnifierDistribution::ENDPOINTS
 
bool magnifier_volume_weighted = false
 
int magnifier_volume_weighted_min_samples = 2
 
int magnifier_volume_weighted_max_samples = 64
 
const InputsMapinputs = nullptr
 
const SymInfosyminfo = nullptr
 The rich run overload's symbol metadata is borrowed only for this callback.
 
const void * overrides_opaque = nullptr
 
bool is_stream = false
 
int warmup_n = 0
 
bool simple_run = false
 Which public overload began the run: the bare run(bars, n) lifecycle (true) or a timeframe-aware / magnified / stream begin (false).
 

Detailed Description

Borrowed begin-call facts.

The bar/input/syminfo/override pointers expire when prepare_native_begin returns; retained configuration must copy them by value (for example into NativeRunSpec::intrabar).

Definition at line 677 of file native_host.hpp.

Field Documentation

◆ bars

const Bar* pineforge::engine_script_run_v18::NativeBeginArgs::bars = nullptr

◆ n

◆ input_tf

std::string pineforge::engine_script_run_v18::NativeBeginArgs::input_tf

◆ script_tf

std::string pineforge::engine_script_run_v18::NativeBeginArgs::script_tf

◆ bar_magnifier

bool pineforge::engine_script_run_v18::NativeBeginArgs::bar_magnifier = false

◆ magnifier_samples

int pineforge::engine_script_run_v18::NativeBeginArgs::magnifier_samples = 4

◆ magnifier_distribution

MagnifierDistribution pineforge::engine_script_run_v18::NativeBeginArgs::magnifier_distribution = MagnifierDistribution::ENDPOINTS

◆ magnifier_volume_weighted

bool pineforge::engine_script_run_v18::NativeBeginArgs::magnifier_volume_weighted = false

◆ magnifier_volume_weighted_min_samples

int pineforge::engine_script_run_v18::NativeBeginArgs::magnifier_volume_weighted_min_samples = 2

◆ magnifier_volume_weighted_max_samples

int pineforge::engine_script_run_v18::NativeBeginArgs::magnifier_volume_weighted_max_samples = 64

Definition at line 687 of file native_host.hpp.

Referenced by pineforge::source::PineScheduler::capture_begin().

◆ inputs

const InputsMap* pineforge::engine_script_run_v18::NativeBeginArgs::inputs = nullptr

◆ syminfo

const SymInfo* pineforge::engine_script_run_v18::NativeBeginArgs::syminfo = nullptr

The rich run overload's symbol metadata is borrowed only for this callback.

A provider that uses it must copy the fields it needs into its retained NativeRunSpec/staged metadata before returning.

Definition at line 692 of file native_host.hpp.

Referenced by pineforge::source::PineStrategyHost::prepare_native_begin().

◆ overrides_opaque

const void* pineforge::engine_script_run_v18::NativeBeginArgs::overrides_opaque = nullptr

◆ is_stream

bool pineforge::engine_script_run_v18::NativeBeginArgs::is_stream = false

◆ warmup_n

int pineforge::engine_script_run_v18::NativeBeginArgs::warmup_n = 0

Definition at line 695 of file native_host.hpp.

Referenced by pineforge::source::PineScheduler::capture_begin().

◆ simple_run

bool pineforge::engine_script_run_v18::NativeBeginArgs::simple_run = false

Which public overload began the run: the bare run(bars, n) lifecycle (true) or a timeframe-aware / magnified / stream begin (false).

A host may keep lifecycle surfaces (for example its higher-timeframe series evaluators) off for the bare overload; empty timeframes alone do not identify it, they only request auto-detection.

Definition at line 701 of file native_host.hpp.

Referenced by pineforge::source::PineScheduler::capture_begin().


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