PineForge v1.4.0-4-g873b25da
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::source::detail Namespace Reference

Data Structures

struct  ExitBindingRuleSwitches
 
struct  MarginOpeningSwitches
 
struct  MarginRuleSwitches
 
struct  MarginScheduleSwitches
 
struct  PineRunCache
 
struct  PoocCloseFillViewSwitches
 
struct  RunState
 
struct  ScriptRuleSwitches
 

Enumerations

enum class  QuietHook : std::uint8_t {
  ReceiptRead ,
  DelayedRelease ,
  L4cPriority ,
  OpenMarketAdmission ,
  OpenMarketableSells ,
  GappedBracketReaccept ,
  DualEntryPath ,
  CoofTail ,
  CoofDeclinedReversal ,
  DueCapClose ,
  SlippedPoocMoney ,
  TvMoneyLongMargin ,
  TvMoneyTrailMargin ,
  OpenMarginCheckpoints ,
  DeclinedReversalAtOpen ,
  IntradayLossClose ,
  IntradayLossPath ,
  PreopenMarginSlice ,
  BracketLegs ,
  PendingCloses ,
  PendingEntries ,
  RelativeExits ,
  PoocLimitEntryFills ,
  PoocExitFills ,
  DeferredSellAdmission ,
  ThrottledReopens ,
  TerminalExplicitMarket ,
  CloseMarginCheckpoints ,
  Count
}
 
enum class  PineCallbackLifecycleRule : int {
  TrailPointsMintickTolerance = 0 ,
  DeclinedReversalReissueRevives = 1 ,
  CallbackLimitTickReach = 2 ,
  RestingLimitTickReach = 3 ,
  CarriedTrailTickReach = 4
}
 

Functions

void placement_audit_erase (const PlacementTable *table, std::uint64_t incarnation, PlacementSnapshot &&row)
 
void placement_audit_forget (const PlacementTable *table) noexcept
 
void placement_audit_miss (const PlacementTable *table, std::uint64_t incarnation, unsigned line) noexcept
 
void placement_audit_scan_hit (const PlacementTable *table, std::uint64_t incarnation, unsigned line) noexcept
 
const std::vector< std::pair< std::uint64_t, const PlacementSnapshot * > > * placement_audit_tombstones (const PlacementTable *table)
 
MarginRuleSwitches & margin_rule_switches () noexcept
 
ScriptRuleSwitches & script_rule_switches () noexcept
 
ExitBindingRuleSwitches & exit_binding_rule_switches () noexcept
 
PoocCloseFillViewSwitches & pooc_close_fill_view_switches () noexcept
 
MarginScheduleSwitches & margin_schedule_switches () noexcept
 
MarginOpeningSwitches & margin_opening_switches () noexcept
 
void set_pine_callback_lifecycle_rule (PineCallbackLifecycleRule rule, bool on) noexcept
 
bool pine_callback_lifecycle_rule (PineCallbackLifecycleRule rule) noexcept
 
void set_retain_retired_rows (bool retain) noexcept
 
bool retain_retired_rows () noexcept
 
void set_carry_reissue_bindings (bool carry) noexcept
 
bool carry_reissue_bindings () noexcept
 
std::uint64_t retired_rows_erased () noexcept
 
NativeExecutionConsumer & run_consumer (const NativeStrategyHost &host)
 
RunState run_state (const NativeStrategyHost &host)
 
NativeLifecycleKind run_kind (const NativeStrategyHost &host)
 
const NativeRunSpec * run_spec (const NativeStrategyHost &host)
 
NativeRunPhase run_phase (const NativeStrategyHost &host)
 
NativePhysicalPosition run_position (const NativeStrategyHost &host)
 
const NativeCurrentPointView * callback_point (const NativeStrategyHost &host)
 
PineRunCache * run_cache (const NativeExecutionConsumer &consumer, const void *owner, std::uint64_t run) noexcept
 
bool run_aggregates_input_bars (const NativeExecutionConsumer &consumer, const void *owner, std::uint64_t run)
 
void take_run_facts (NativeExecutionConsumer &consumer, const PineExecutionAdapter &adapter, std::uint64_t run)
 
bool skip_quiet (QuietHook hook, bool quiet) noexcept
 

Variables

const char kPineRunCacheKind = 0
 
constexpr std::size_t kQuietHookCount = static_cast<std::size_t>(QuietHook::Count)
 
constexpr int kPineCallbackLifecycleRuleCount = 5
 

Enumeration Type Documentation

◆ QuietHook

enum class pineforge::source::detail::QuietHook : std::uint8_t
strong
Enumerator
ReceiptRead 
DelayedRelease 
L4cPriority 
OpenMarketAdmission 
OpenMarketableSells 
GappedBracketReaccept 
DualEntryPath 
CoofTail 
CoofDeclinedReversal 
DueCapClose 
SlippedPoocMoney 
TvMoneyLongMargin 
TvMoneyTrailMargin 
OpenMarginCheckpoints 
DeclinedReversalAtOpen 
IntradayLossClose 
IntradayLossPath 
PreopenMarginSlice 
BracketLegs 
PendingCloses 
PendingEntries 
RelativeExits 
PoocLimitEntryFills 
PoocExitFills 
DeferredSellAdmission 
ThrottledReopens 
TerminalExplicitMarket 
CloseMarginCheckpoints 
Count 

Definition at line 38 of file pine_quiet_bar.hpp.

◆ PineCallbackLifecycleRule

Enumerator
TrailPointsMintickTolerance 
DeclinedReversalReissueRevives 
CallbackLimitTickReach 
RestingLimitTickReach 
CarriedTrailTickReach 

Definition at line 14 of file callback_lifecycle_rules.hpp.

Function Documentation

◆ placement_audit_erase()

void pineforge::source::detail::placement_audit_erase ( const PlacementTable * table,
std::uint64_t incarnation,
PlacementSnapshot && row )

Definition at line 900 of file pine_adapter.cpp.

Referenced by pineforge::source::PlacementTable::erase().

◆ placement_audit_forget()

void pineforge::source::detail::placement_audit_forget ( const PlacementTable * table)
noexcept

Definition at line 906 of file pine_adapter.cpp.

Referenced by pineforge::source::PlacementTable::clear().

◆ placement_audit_miss()

void pineforge::source::detail::placement_audit_miss ( const PlacementTable * table,
std::uint64_t incarnation,
unsigned line )
noexcept

Definition at line 910 of file pine_adapter.cpp.

◆ placement_audit_scan_hit()

void pineforge::source::detail::placement_audit_scan_hit ( const PlacementTable * table,
std::uint64_t incarnation,
unsigned line )
noexcept

Definition at line 918 of file pine_adapter.cpp.

◆ placement_audit_tombstones()

const std::vector< std::pair< std::uint64_t, const PlacementSnapshot * > > * pineforge::source::detail::placement_audit_tombstones ( const PlacementTable * table)

Definition at line 923 of file pine_adapter.cpp.

◆ margin_rule_switches()

◆ script_rule_switches()

ScriptRuleSwitches & pineforge::source::detail::script_rule_switches ( )
noexcept

◆ exit_binding_rule_switches()

◆ pooc_close_fill_view_switches()

PoocCloseFillViewSwitches & pineforge::source::detail::pooc_close_fill_view_switches ( )
noexcept

Definition at line 747 of file pine_adapter.cpp.

Referenced by pineforge::source::PineExecutionAdapter::exit().

◆ margin_schedule_switches()

◆ margin_opening_switches()

◆ set_pine_callback_lifecycle_rule()

void pineforge::source::detail::set_pine_callback_lifecycle_rule ( PineCallbackLifecycleRule rule,
bool on )
noexcept

Definition at line 692 of file pine_adapter.cpp.

References kPineCallbackLifecycleRuleCount.

◆ pine_callback_lifecycle_rule()

bool pineforge::source::detail::pine_callback_lifecycle_rule ( PineCallbackLifecycleRule rule)
noexcept

◆ set_retain_retired_rows()

void pineforge::source::detail::set_retain_retired_rows ( bool retain)
noexcept

Definition at line 3391 of file pine_adapter.cpp.

◆ retain_retired_rows()

bool pineforge::source::detail::retain_retired_rows ( )
noexcept

Definition at line 3394 of file pine_adapter.cpp.

◆ set_carry_reissue_bindings()

void pineforge::source::detail::set_carry_reissue_bindings ( bool carry)
noexcept

Definition at line 3399 of file pine_adapter.cpp.

◆ carry_reissue_bindings()

bool pineforge::source::detail::carry_reissue_bindings ( )
noexcept

Definition at line 3402 of file pine_adapter.cpp.

◆ retired_rows_erased()

std::uint64_t pineforge::source::detail::retired_rows_erased ( )
noexcept

Definition at line 3405 of file pine_adapter.cpp.

◆ run_consumer()

◆ run_state()

◆ run_kind()

NativeLifecycleKind pineforge::source::detail::run_kind ( const NativeStrategyHost & host)
inline

Definition at line 53 of file pine_host_reads.hpp.

References run_consumer().

◆ run_spec()

◆ run_phase()

NativeRunPhase pineforge::source::detail::run_phase ( const NativeStrategyHost & host)
inline

◆ run_position()

◆ callback_point()

◆ run_cache()

PineRunCache * pineforge::source::detail::run_cache ( const NativeExecutionConsumer & consumer,
const void * owner,
std::uint64_t run )
inlinenoexcept

◆ run_aggregates_input_bars()

bool pineforge::source::detail::run_aggregates_input_bars ( const NativeExecutionConsumer & consumer,
const void * owner,
std::uint64_t run )
inline

◆ take_run_facts()

void pineforge::source::detail::take_run_facts ( NativeExecutionConsumer & consumer,
const PineExecutionAdapter & adapter,
std::uint64_t run )

◆ skip_quiet()

Variable Documentation

◆ kPineRunCacheKind

const char pineforge::source::detail::kPineRunCacheKind = 0
extern

◆ kQuietHookCount

std::size_t pineforge::source::detail::kQuietHookCount = static_cast<std::size_t>(QuietHook::Count)
inlineconstexpr

Definition at line 70 of file pine_quiet_bar.hpp.

◆ kPineCallbackLifecycleRuleCount

int pineforge::source::detail::kPineCallbackLifecycleRuleCount = 5
inlineconstexpr