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

Ephemeral factual view of the numbers the kernel is about to compare, at one check point, BEFORE the breach test. More...

#include <native_host.hpp>

Data Fields

NativeMarginCheckKind kind = NativeMarginCheckKind::BarOpen
 
NativePhysicalPosition position
 
double mark = 0.0
 
double equity = 0.0
 
double required = 0.0
 
native_order::MatchCursor cursor
 

Detailed Description

Ephemeral factual view of the numbers the kernel is about to compare, at one check point, BEFORE the breach test.

equity is the marked equity on the model's own basis and required the kernel's maintenance requirement of the whole position at mark; both are exactly what the kernel would compare if the host answered nullopt.

Definition at line 578 of file native_host.hpp.

Field Documentation

◆ kind

NativeMarginCheckKind pineforge::engine_script_run_v19::NativeMarginRequirementView::kind = NativeMarginCheckKind::BarOpen

Definition at line 579 of file native_host.hpp.

◆ position

NativePhysicalPosition pineforge::engine_script_run_v19::NativeMarginRequirementView::position

Definition at line 580 of file native_host.hpp.

◆ mark

double pineforge::engine_script_run_v19::NativeMarginRequirementView::mark = 0.0

◆ equity

double pineforge::engine_script_run_v19::NativeMarginRequirementView::equity = 0.0

Definition at line 582 of file native_host.hpp.

◆ required

double pineforge::engine_script_run_v19::NativeMarginRequirementView::required = 0.0

Definition at line 583 of file native_host.hpp.

◆ cursor

native_order::MatchCursor pineforge::engine_script_run_v19::NativeMarginRequirementView::cursor

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