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

Ephemeral read-only facts of one anchored-leg materialization (L7b), offered to the host exactly once, before the ArmedEvent is built. More...

#include <native_host.hpp>

Data Fields

native_order::RequestHandle owner
 
std::uint64_t owner_applied_ordinal = 0
 
std::uint64_t owner_lot_incarnation = 0
 
double owner_fill_price = 0.0
 
native_order::MatchCursor owner_cursor
 
native_order::RequestHandle leg
 
native_order::Side leg_side = native_order::Side::Long
 
NativeAnchoredTrigger trigger = NativeAnchoredTrigger::Limit
 
double offset = 0.0
 
double price_tick = 0.0
 
double kernel_level = 0.0
 

Detailed Description

Ephemeral read-only facts of one anchored-leg materialization (L7b), offered to the host exactly once, before the ArmedEvent is built.

owner is the request whose fill arms the leg, owner_applied_ordinal that fill's ExecutionAppliedEvent, owner_lot_incarnation the lot it opened, owner_fill_price its resolved price and owner_cursor its cursor. leg is the anchored request, leg_side the side it trades on (a closing leg trades against the lot the fill opened), trigger which trigger receives the level, offset the anchor's resolved offset in price units, price_tick the run's tick (0 when the run has none) and kernel_level the level the kernel would install: fill + offset after the anchor's own rounding. A host that answers with a value owns the installed level; the kernel's representability check still applies.

Definition at line 560 of file native_host.hpp.

Field Documentation

◆ owner

native_order::RequestHandle pineforge::engine_script_run_v18::NativeAnchoredLevelView::owner

Definition at line 561 of file native_host.hpp.

◆ owner_applied_ordinal

std::uint64_t pineforge::engine_script_run_v18::NativeAnchoredLevelView::owner_applied_ordinal = 0

Definition at line 562 of file native_host.hpp.

◆ owner_lot_incarnation

std::uint64_t pineforge::engine_script_run_v18::NativeAnchoredLevelView::owner_lot_incarnation = 0

Definition at line 563 of file native_host.hpp.

◆ owner_fill_price

double pineforge::engine_script_run_v18::NativeAnchoredLevelView::owner_fill_price = 0.0

Definition at line 564 of file native_host.hpp.

◆ owner_cursor

native_order::MatchCursor pineforge::engine_script_run_v18::NativeAnchoredLevelView::owner_cursor

Definition at line 565 of file native_host.hpp.

◆ leg

native_order::RequestHandle pineforge::engine_script_run_v18::NativeAnchoredLevelView::leg

Definition at line 566 of file native_host.hpp.

◆ leg_side

native_order::Side pineforge::engine_script_run_v18::NativeAnchoredLevelView::leg_side = native_order::Side::Long

Definition at line 567 of file native_host.hpp.

◆ trigger

NativeAnchoredTrigger pineforge::engine_script_run_v18::NativeAnchoredLevelView::trigger = NativeAnchoredTrigger::Limit

Definition at line 568 of file native_host.hpp.

◆ offset

double pineforge::engine_script_run_v18::NativeAnchoredLevelView::offset = 0.0

Definition at line 569 of file native_host.hpp.

◆ price_tick

double pineforge::engine_script_run_v18::NativeAnchoredLevelView::price_tick = 0.0

Definition at line 570 of file native_host.hpp.

◆ kernel_level

double pineforge::engine_script_run_v18::NativeAnchoredLevelView::kernel_level = 0.0

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