PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::engine_script_run_v19::NativeOpenLotView Struct Reference

Callback-local view of the same FIFO row. More...

#include <native_host.hpp>

Data Fields

std::size_t ordinal = 0
 
std::uint64_t entry_incarnation = 0
 
std::int64_t cycle = 0
 
native_order::Side side = native_order::Side::Long
 
std::string_view entry_label
 
std::string_view entry_comment
 
std::int64_t entry_time_ms = 0
 
int entry_bar_index = -1
 
double entry_price = 0.0
 
double signed_units = 0.0
 
double entry_commission = 0.0
 
double mark = std::numeric_limits<double>::quiet_NaN()
 
double unrealized_pnl = std::numeric_limits<double>::quiet_NaN()
 
double favorable_excursion = 0.0
 
double adverse_excursion = 0.0
 

Detailed Description

Callback-local view of the same FIFO row.

Text borrows the physical lot; arbitrary label/comment widths require no per-row allocation.

Definition at line 348 of file native_host.hpp.

Field Documentation

◆ ordinal

std::size_t pineforge::engine_script_run_v19::NativeOpenLotView::ordinal = 0

Definition at line 349 of file native_host.hpp.

◆ entry_incarnation

std::uint64_t pineforge::engine_script_run_v19::NativeOpenLotView::entry_incarnation = 0

Definition at line 350 of file native_host.hpp.

◆ cycle

std::int64_t pineforge::engine_script_run_v19::NativeOpenLotView::cycle = 0

Definition at line 351 of file native_host.hpp.

◆ side

native_order::Side pineforge::engine_script_run_v19::NativeOpenLotView::side = native_order::Side::Long

Definition at line 352 of file native_host.hpp.

◆ entry_label

std::string_view pineforge::engine_script_run_v19::NativeOpenLotView::entry_label

Definition at line 353 of file native_host.hpp.

◆ entry_comment

std::string_view pineforge::engine_script_run_v19::NativeOpenLotView::entry_comment

Definition at line 354 of file native_host.hpp.

◆ entry_time_ms

std::int64_t pineforge::engine_script_run_v19::NativeOpenLotView::entry_time_ms = 0

Definition at line 355 of file native_host.hpp.

◆ entry_bar_index

int pineforge::engine_script_run_v19::NativeOpenLotView::entry_bar_index = -1

Definition at line 356 of file native_host.hpp.

◆ entry_price

double pineforge::engine_script_run_v19::NativeOpenLotView::entry_price = 0.0

Definition at line 357 of file native_host.hpp.

◆ signed_units

double pineforge::engine_script_run_v19::NativeOpenLotView::signed_units = 0.0

Definition at line 358 of file native_host.hpp.

◆ entry_commission

double pineforge::engine_script_run_v19::NativeOpenLotView::entry_commission = 0.0

Definition at line 359 of file native_host.hpp.

◆ mark

double pineforge::engine_script_run_v19::NativeOpenLotView::mark = std::numeric_limits<double>::quiet_NaN()

Definition at line 360 of file native_host.hpp.

◆ unrealized_pnl

double pineforge::engine_script_run_v19::NativeOpenLotView::unrealized_pnl = std::numeric_limits<double>::quiet_NaN()

Definition at line 361 of file native_host.hpp.

◆ favorable_excursion

double pineforge::engine_script_run_v19::NativeOpenLotView::favorable_excursion = 0.0

Definition at line 362 of file native_host.hpp.

◆ adverse_excursion

double pineforge::engine_script_run_v19::NativeOpenLotView::adverse_excursion = 0.0

Definition at line 363 of file native_host.hpp.


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