PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::native_module::MetricsPlainHostV1< Host > Struct Template Reference

Specialize for the EXACT host passed to PINEFORGE_EXPORT_NATIVE_STRATEGY. More...

#include <native_module.hpp>

Static Public Member Functions

static std::optional< MetricsPlainDeclarationV1 > declaration ()
 

Detailed Description

template<typename Host>
struct pineforge::native_module::MetricsPlainHostV1< Host >

Specialize for the EXACT host passed to PINEFORGE_EXPORT_NATIVE_STRATEGY.

Return its versioned declaration, or nullopt when it cannot certify itself. No specialization means no certification; a subclass does not inherit one.

In addition to the declaration's presenter/marks/scheduler facts, opting in certifies one final metric point per input bar, with no extra anchor, on the admitted passthrough schedule, and deterministic whole-run replay on a fresh instance with identical settings and frozen input. Source hosts with private tail/probe modes need their own adapter: this wrapper certifies only the native defaults of those setters. A modified presenter or mark implementation needs a new, truthful specialization, never a caller-provided declaration.

Definition at line 72 of file native_module.hpp.

Member Function Documentation

◆ declaration()

template<typename Host>
static std::optional< MetricsPlainDeclarationV1 > pineforge::native_module::MetricsPlainHostV1< Host >::declaration ( )
inlinestatic

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