PineForge v0.1.2-7-ga095e36
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
Types

POD types and enums passed across the C ABI. More...

Data Structures

struct  pf_bar_t
 Single OHLCV bar pushed into the engine. More...
 
struct  pf_trade_t
 Closed-trade record returned in pf_report_t::trades. More...
 
struct  pf_security_diag_t
 Per-request.security() site diagnostic counters. More...
 
struct  pf_trace_entry_t
 Single per-bar trace entry. More...
 
struct  pf_report_t
 Backtest report filled by run_backtest / run_backtest_full. More...
 

Enumerations

enum  pf_magnifier_distribution_t {
  PF_MAGNIFIER_UNIFORM = 0 ,
  PF_MAGNIFIER_COSINE = 1 ,
  PF_MAGNIFIER_TRIANGLE = 2 ,
  PF_MAGNIFIER_ENDPOINTS = 3 ,
  PF_MAGNIFIER_FRONT_LOADED = 4 ,
  PF_MAGNIFIER_BACK_LOADED = 5
}
 Bar-magnifier sub-bar sampling distribution. More...
 

Detailed Description

POD types and enums passed across the C ABI.

Enumeration Type Documentation

◆ pf_magnifier_distribution_t

Bar-magnifier sub-bar sampling distribution.

Selects how intra-bar synthetic ticks are placed when the bar magnifier is enabled in run_backtest_full. Layout-compatible with the internal C++ pineforge::MagnifierDistribution enum class — a static_assert in c_abi.cpp guarantees the integer values match.

Enumerator
PF_MAGNIFIER_UNIFORM 

Uniform spacing across the parent bar.

PF_MAGNIFIER_COSINE 

Cosine-tapered density.

PF_MAGNIFIER_TRIANGLE 

Triangle-tapered density.

PF_MAGNIFIER_ENDPOINTS 

Default — exact O,H,L,C points plus uniform fill between.

PF_MAGNIFIER_FRONT_LOADED 

Sample density biased toward bar open.

PF_MAGNIFIER_BACK_LOADED 

Sample density biased toward bar close.

Definition at line 83 of file pineforge.h.