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

Ephemeral factual view of one kernel check point, offered to the host before the check runs. More...

#include <native_host.hpp>

Data Fields

NativeMarginCheckKind kind = NativeMarginCheckKind::BarOpen
 
NativePhysicalPosition position
 
double mark = 0.0
 
native_order::MatchCursor cursor
 
bool liquidation_resting = false
 Whether the model already holds a liquidation resting from an earlier admitted point.
 

Detailed Description

Ephemeral factual view of one kernel check point, offered to the host before the check runs.

mark is the price the kernel would measure the breach at; the modeled path phase is cursor.point.path_phase.

Definition at line 502 of file native_host.hpp.

Field Documentation

◆ kind

NativeMarginCheckKind pineforge::engine_script_run_v18::NativeMarginCheckPoint::kind = NativeMarginCheckKind::BarOpen

◆ position

NativePhysicalPosition pineforge::engine_script_run_v18::NativeMarginCheckPoint::position

Definition at line 504 of file native_host.hpp.

◆ mark

double pineforge::engine_script_run_v18::NativeMarginCheckPoint::mark = 0.0

Definition at line 505 of file native_host.hpp.

◆ cursor

native_order::MatchCursor pineforge::engine_script_run_v18::NativeMarginCheckPoint::cursor

◆ liquidation_resting

bool pineforge::engine_script_run_v18::NativeMarginCheckPoint::liquidation_resting = false

Whether the model already holds a liquidation resting from an earlier admitted point.

A host that suppresses points – and therefore owns when a slice sized on a book that has since shrunk is re-sized – needs to tell "re-size the live slice" from "take a new one" apart. The default host admits every point and never reads this.

Definition at line 512 of file native_host.hpp.

Referenced by pineforge::source::PineExecutionAdapter::margin_check_allowed().


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