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

A group effect's deduction from a live sibling whose remaining units are known (GroupEffect::Reduce): requested_delta is the member fill's filled_working, actual_deduction the part taken – capped at before, which then cancels the sibling – and after is fl(before - actual_deduction). More...

#include <native_order.hpp>

Data Fields

uint64_t ordinal = 0
 
DefinitionRef definition
 
EventId cause
 
RequestHandle recipient
 
GroupEffect effect = GroupEffect::Reduce
 
double requested_delta = 0.0
 
double actual_deduction = 0.0
 
RemainingUnits before {}
 
RemainingProjection after = RemainingProjectionUnits{}
 

Detailed Description

A group effect's deduction from a live sibling whose remaining units are known (GroupEffect::Reduce): requested_delta is the member fill's filled_working, actual_deduction the part taken – capped at before, which then cancels the sibling – and after is fl(before - actual_deduction).

A deduction binary64 cannot take off before (at most half an ulp of it: fl(before - d) is before) is absorbed (R5 lane K-ULP5): actual_deduction is 0 and after equals before, the exact binary64 result, and the member's fill stands. A deduction that is taken is positive, so an actual_deduction of 0 names an absorbed one.

Definition at line 1191 of file native_order.hpp.

Field Documentation

◆ ordinal

uint64_t pineforge::native_order::native_order_v7::ReservationReducedEvent::ordinal = 0

Definition at line 1192 of file native_order.hpp.

◆ definition

DefinitionRef pineforge::native_order::native_order_v7::ReservationReducedEvent::definition

Definition at line 1193 of file native_order.hpp.

◆ cause

EventId pineforge::native_order::native_order_v7::ReservationReducedEvent::cause

Definition at line 1194 of file native_order.hpp.

◆ recipient

RequestHandle pineforge::native_order::native_order_v7::ReservationReducedEvent::recipient

Definition at line 1195 of file native_order.hpp.

◆ effect

GroupEffect pineforge::native_order::native_order_v7::ReservationReducedEvent::effect = GroupEffect::Reduce

Definition at line 1196 of file native_order.hpp.

◆ requested_delta

double pineforge::native_order::native_order_v7::ReservationReducedEvent::requested_delta = 0.0

Definition at line 1197 of file native_order.hpp.

◆ actual_deduction

double pineforge::native_order::native_order_v7::ReservationReducedEvent::actual_deduction = 0.0

Definition at line 1198 of file native_order.hpp.

◆ before

RemainingUnits pineforge::native_order::native_order_v7::ReservationReducedEvent::before {}

Definition at line 1199 of file native_order.hpp.

◆ after

RemainingProjection pineforge::native_order::native_order_v7::ReservationReducedEvent::after = RemainingProjectionUnits{}

Definition at line 1200 of file native_order.hpp.


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