PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::native_order::native_order_v6::ScopeFraction Struct Reference

A fraction in (0, 1] of the bound scope, resolved at the matching candidate. More...

#include <native_order.hpp>

Data Fields

double fraction = 1.0
 
ScopeClaim claim = ScopeClaim::Gross
 
ScopeBasis basis = ScopeBasis::AtMatch
 Appended last so every existing aggregate initializer keeps its meaning.
 

Detailed Description

A fraction in (0, 1] of the bound scope, resolved at the matching candidate.

The resolution is units = scope * fraction, one binary64 multiplication: a caller that spells its size as a percent converts percent -> fraction itself, so no second rounding step is introduced here.

Definition at line 207 of file native_order.hpp.

Field Documentation

◆ fraction

double pineforge::native_order::native_order_v6::ScopeFraction::fraction = 1.0

Definition at line 208 of file native_order.hpp.

◆ claim

ScopeClaim pineforge::native_order::native_order_v6::ScopeFraction::claim = ScopeClaim::Gross

Definition at line 209 of file native_order.hpp.

◆ basis

ScopeBasis pineforge::native_order::native_order_v6::ScopeFraction::basis = ScopeBasis::AtMatch

Appended last so every existing aggregate initializer keeps its meaning.

Definition at line 211 of file native_order.hpp.


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