PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pf_native_lot_excursion_v1 Struct Reference

One closing lot's booking facts — ClosedLotExcursionFacts (RULING A48). More...

#include <native_c_api.h>

Data Fields

uint32_t struct_size
 sizeof(pf_native_lot_excursion_v1).
 
uint32_t version
 PF_NATIVE_API_VERSION.
 
uint64_t entry_incarnation
 The lot's opening request.
 
int64_t entry_time_ms
 
double entry_price
 
double lot_qty
 The whole lot.
 
double closed_qty
 What this fill closes of it.
 
double fill_price
 
double carried_favorable
 What the lot carried in, for a partial close.
 
double carried_adverse
 
int32_t entry_bar_index
 
int32_t exit_bar_index
 
uint8_t is_long
 
uint8_t entry_bar_high_masked
 The entry bar's high is not this trade's.
 
uint8_t entry_bar_low_masked
 The entry bar's low is not this trade's.
 
uint8_t reserved0
 
double entry_commission
 This closing slice's share of the entry fee, in account currency.
 

Detailed Description

One closing lot's booking facts — ClosedLotExcursionFacts (RULING A48).

Handed to pf_native_callbacks_v1::on_lot_excursion, whose two outputs are the favorable and adverse magnitudes the closing row then carries. Facts in, magnitudes out: nothing about the host's price model crosses the boundary in either direction. The two entry-bar masks are what strategy_native_declare_opened_lot_entry_bar_mask_v1 derived for the lot, and 0 for a lot nobody declared. The additive tail's entry_commission is the entry-fee share already carried by this closing slice.

Definition at line 1918 of file native_c_api.h.

Field Documentation

◆ struct_size

uint32_t pf_native_lot_excursion_v1::struct_size

sizeof(pf_native_lot_excursion_v1).

Definition at line 1919 of file native_c_api.h.

◆ version

uint32_t pf_native_lot_excursion_v1::version

PF_NATIVE_API_VERSION.

Definition at line 1920 of file native_c_api.h.

◆ entry_incarnation

uint64_t pf_native_lot_excursion_v1::entry_incarnation

The lot's opening request.

Definition at line 1921 of file native_c_api.h.

◆ entry_time_ms

int64_t pf_native_lot_excursion_v1::entry_time_ms

Definition at line 1922 of file native_c_api.h.

◆ entry_price

double pf_native_lot_excursion_v1::entry_price

Definition at line 1923 of file native_c_api.h.

◆ lot_qty

double pf_native_lot_excursion_v1::lot_qty

The whole lot.

Definition at line 1924 of file native_c_api.h.

◆ closed_qty

double pf_native_lot_excursion_v1::closed_qty

What this fill closes of it.

Definition at line 1925 of file native_c_api.h.

◆ fill_price

double pf_native_lot_excursion_v1::fill_price

Definition at line 1926 of file native_c_api.h.

◆ carried_favorable

double pf_native_lot_excursion_v1::carried_favorable

What the lot carried in, for a partial close.

Definition at line 1927 of file native_c_api.h.

◆ carried_adverse

double pf_native_lot_excursion_v1::carried_adverse

Definition at line 1928 of file native_c_api.h.

◆ entry_bar_index

int32_t pf_native_lot_excursion_v1::entry_bar_index

Definition at line 1929 of file native_c_api.h.

◆ exit_bar_index

int32_t pf_native_lot_excursion_v1::exit_bar_index

Definition at line 1930 of file native_c_api.h.

◆ is_long

uint8_t pf_native_lot_excursion_v1::is_long

Definition at line 1931 of file native_c_api.h.

◆ entry_bar_high_masked

uint8_t pf_native_lot_excursion_v1::entry_bar_high_masked

The entry bar's high is not this trade's.

Definition at line 1932 of file native_c_api.h.

◆ entry_bar_low_masked

uint8_t pf_native_lot_excursion_v1::entry_bar_low_masked

The entry bar's low is not this trade's.

Definition at line 1933 of file native_c_api.h.

◆ reserved0

uint8_t pf_native_lot_excursion_v1::reserved0

Definition at line 1934 of file native_c_api.h.

◆ entry_commission

double pf_native_lot_excursion_v1::entry_commission

This closing slice's share of the entry fee, in account currency.

Present in the additive tail of the current layout.

Definition at line 1935 of file native_c_api.h.


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