PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::engine_script_run_v18::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 520 of file native_host.hpp.

Field Documentation

◆ kind

NativeMarginCheckKind pineforge::engine_script_run_v18::NativeMarginRequirementView::kind = NativeMarginCheckKind::BarOpen

Definition at line 521 of file native_host.hpp.

◆ position

NativePhysicalPosition pineforge::engine_script_run_v18::NativeMarginRequirementView::position

Definition at line 522 of file native_host.hpp.

◆ mark

double pineforge::engine_script_run_v18::NativeMarginRequirementView::mark = 0.0

◆ equity

double pineforge::engine_script_run_v18::NativeMarginRequirementView::equity = 0.0

Definition at line 524 of file native_host.hpp.

◆ required

double pineforge::engine_script_run_v18::NativeMarginRequirementView::required = 0.0

Definition at line 525 of file native_host.hpp.

◆ cursor

native_order::MatchCursor pineforge::engine_script_run_v18::NativeMarginRequirementView::cursor

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