PineForge v1.4.0-4-g873b25da
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::engine_script_run_v19::NativeMarketEvent Struct Reference

One owning row of native_events(after_ordinal): a command event, a driver point or an account observation, tagged by kind. More...

#include <native_host.hpp>

Data Fields

NativeEventKind kind = NativeEventKind::Command
 
uint64_t ordinal = 0
 
std::optional< native_order::CommandEvent > command
 
std::optional< NativeDriverPoint > driver
 
std::optional< NativeAccountObservation > account
 

Detailed Description

One owning row of native_events(after_ordinal): a command event, a driver point or an account observation, tagged by kind.

Later commands and the next run's reset do not invalidate a row already returned. C spelling: strategy_native_events_v1, one tagged POD with each kind's documented fields; the rest is C++-only in 1.0.

Definition at line 370 of file native_host.hpp.

Field Documentation

◆ kind

NativeEventKind pineforge::engine_script_run_v19::NativeMarketEvent::kind = NativeEventKind::Command

Definition at line 371 of file native_host.hpp.

◆ ordinal

uint64_t pineforge::engine_script_run_v19::NativeMarketEvent::ordinal = 0

Definition at line 372 of file native_host.hpp.

◆ command

std::optional<native_order::CommandEvent> pineforge::engine_script_run_v19::NativeMarketEvent::command

Definition at line 373 of file native_host.hpp.

◆ driver

std::optional<NativeDriverPoint> pineforge::engine_script_run_v19::NativeMarketEvent::driver

Definition at line 374 of file native_host.hpp.

◆ account

std::optional<NativeAccountObservation> pineforge::engine_script_run_v19::NativeMarketEvent::account

Definition at line 375 of file native_host.hpp.


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