46 std::unique_ptr<State> state_;
62 std::int64_t point_count_;
104 std::unique_ptr<State> state_;
120template <
class Po
intSource>
122 const PointSource& curve, std::int64_t n,
double initial_capital,
123 const std::string& chart_tz,
double first_open,
double last_close,
124 std::int64_t bars_in_market,
double net_profit);
132template <
class Po
intSource>
134 const PointSource& curve, std::int64_t n,
double initial_capital,
135 const std::string& chart_tz,
double first_open,
double last_close,
136 std::int64_t bars_in_market,
double net_profit,
137 std::int64_t observation_count);
156 double initial_capital,
const std::string& chart_tz,
157 double first_open,
double last_close, std::int64_t bars_in_market,
162 double initial_capital,
const std::string& chart_tz,
163 double first_open,
double last_close, std::int64_t bars_in_market,
164 double net_profit, std::int64_t observation_count);
pf_equity_point_t operator[](std::int64_t index) const
std::int64_t size() const
ArrayCurve(const pf_equity_point_t *data, std::int64_t point_count)
pf_equity_point_t operator[](std::int64_t index) const
SpillCurve(const ScratchCurveRegion ®ion)
std::int64_t size() const
SpillCurve(const ScratchCurveReader &reader)
Alternate read boundary for scratch adapters and file-like test readers.
void fold(const TradeC &trade)
pf_trade_stats_t finish() const
TradeStatsAccumulator(TradeFilter filter, double initial_capital)
TradeStatsAccumulator(const TradeStatsAccumulator &)
TradeStatsAccumulator & operator=(const TradeStatsAccumulator &)
pf_equity_stats_t compute_equity_stats(const pf_equity_point_t *curve, int64_t n, double initial_capital, const std::string &chart_tz, double first_open, double last_close, int64_t bars_in_market, double net_profit)
#define PF_STATIC_ASSERT(condition)
Single per-script-bar equity point.
Equity-curve-derived statistics (all-trades only, like TV).
Trade-level statistics block — computed once each for all / long / short.
Minimal read boundary for the private binary curve (DESIGN 3.8).
A region of the engine-private scratch file (3.8:902-909).
const detail::ScratchFile * scratch