|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
The one class the macro instantiates: the host plus the module boundary. More...
#include <native_module.hpp>
Public Member Functions | |
| void | prepare_metrics_only_v1 (const Bar *bars, int count, const char *input_tf, const char *script_tf, bool with_timeframes) noexcept |
| This is a speculative report optimization only. | |
| void | note_error (const char *text, const RunFailureValue &value) noexcept |
Presentation text for strategy_get_last_error, written with its run failure code (strategy_get_last_error_code) so the two never disagree. | |
| void | note_error (const char *text) noexcept |
| The text alone, as before run-failure codes: engine_unclassified_error. | |
The one class the macro instantiates: the host plus the module boundary.
Deriving is deliberate — last_error_ is protected engine state, written here only through note_run_failure (run_failure.hpp), with its code.
Definition at line 180 of file native_module.hpp.
|
inlinenoexcept |
This is a speculative report optimization only.
Failure to establish any proof leaves the existing run and its refusal ordering in charge.
Definition at line 187 of file native_module.hpp.
References pineforge::MetricsPlainInputsV1::builtin_host_marks, pineforge::MetricsPlainDeclarationV1::calculation_trigger, pineforge::MetricsPlainInputsV1::calculation_trigger, pineforge::MetricsPlainInputsV1::declaration, pineforge::MetricsPlainInputsV1::equal_resolved_timeframes, pineforge::MetricsPlainInputsV1::feed_tolerant_passthrough, pineforge::MetricsPlainInputsV1::final_admitted_view_bound, pineforge::MetricsPlainInputsV1::historical_batch, pineforge::MetricsPlainInputsV1::intrabar_none, pineforge::native_module::metrics_plain_declaration_v1(), pineforge::MetricsPlainInputsV1::module_contract_bound, pineforge::native_module::next_metrics_attempt_v1(), pineforge::MetricsPlainInputsV1::probe_suppress_tail_logic, pineforge::MetricsPlainInputsV1::realtime_tail, pineforge::MetricsPlainInputsV1::timeframe_undetected, pineforge::native_module::MetricsBindingHashV1::value(), and pineforge::native_module::MetricsBindingHashV1::word().
|
inlinenoexcept |
Presentation text for strategy_get_last_error, written with its run failure code (strategy_get_last_error_code) so the two never disagree.
Never throws: it runs on the C boundary, often from a catch handler.
Definition at line 305 of file native_module.hpp.
References pineforge::note_run_failure().
Referenced by note_error().
|
inlinenoexcept |
The text alone, as before run-failure codes: engine_unclassified_error.
Definition at line 312 of file native_module.hpp.
References pineforge::engine_unclassified_error, and note_error().