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

Array point source, the first source of 3.3:535-543. More...

#include <metrics_stream.hpp>

Public Member Functions

 ArrayCurve (const pf_equity_point_t *data, std::int64_t point_count)
 
std::int64_t size () const
 
pf_equity_point_t operator[] (std::int64_t index) const
 

Detailed Description

Array point source, the first source of 3.3:535-543.

data stays caller- owned and alive throughout the metric walk. Indexing returns a point value, so callers do not keep references to a source's refillable window. Required structural interface for BOTH sources: size() -> int64_t and source[int64_t] -> pf_equity_point_t, with 0 <= index < size().

Definition at line 54 of file metrics_stream.hpp.

Constructor & Destructor Documentation

◆ ArrayCurve()

pineforge::metrics::ArrayCurve::ArrayCurve ( const pf_equity_point_t * data,
std::int64_t point_count )

Member Function Documentation

◆ size()

std::int64_t pineforge::metrics::ArrayCurve::size ( ) const

◆ operator[]()

pf_equity_point_t pineforge::metrics::ArrayCurve::operator[] ( std::int64_t index) const

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