PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::metrics::ScratchCurveRegion Struct Reference

A region of the engine-private scratch file (3.8:902-909). More...

#include <metrics_stream.hpp>

Data Fields

int descriptor
 
std::int64_t byte_offset
 
std::int64_t point_count
 
const detail::ScratchFile * scratch = nullptr
 

Detailed Description

A region of the engine-private scratch file (3.8:902-909).

A point is exactly the 24-byte binary pf_equity_point_t: time_ms, equity, open_profit. This describes either a region or a separate file without choosing the curve/position-tail placement that DESIGN leaves open (3.8:908). Production regions borrow scratch and its lifetime, with descriptor=-1. The descriptor form remains available for existing external file readers; it is used only when scratch is null. Neither form owns its backing.

Definition at line 72 of file metrics_stream.hpp.

Field Documentation

◆ descriptor

int pineforge::metrics::ScratchCurveRegion::descriptor

Definition at line 73 of file metrics_stream.hpp.

◆ byte_offset

std::int64_t pineforge::metrics::ScratchCurveRegion::byte_offset

Definition at line 74 of file metrics_stream.hpp.

◆ point_count

std::int64_t pineforge::metrics::ScratchCurveRegion::point_count

Definition at line 75 of file metrics_stream.hpp.

◆ scratch

const detail::ScratchFile* pineforge::metrics::ScratchCurveRegion::scratch = nullptr

Definition at line 76 of file metrics_stream.hpp.


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