PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pine_run_failure.hpp
Go to the documentation of this file.
1#pragma once
2
3// The run-failure code the Pine adapter's spec refusal carries (run_failure.hpp).
4// Not installed API.
5
8
9namespace pineforge::source {
10
11// The code PineExecutionAdapter::project throws "Pine adapter produced invalid
12// native run spec field N" with, chosen by the refused field:
13// symbol facts (5-14, 16-18) -> symbol_metadata_rejected{field}
14// the quantity grid (22) -> lot_grid_rejected
15// the strategy's own settings (15, 19-21, 23, 25-28, 39-40, 43-60, 65)
16// -> strategy_settings_rejected{field}
17// the run options (3, 4, 29-33, 37) -> run_options_rejected{option}
18// the installed symbol feeds (66-71) -> symbol_feeds_refused
19// {kernel_refused_series, field}
20// every field the adapter builds itself -> engine_invariant
21// The argument is the field's name in snake_case, never its number.
22RunFailureValue run_spec_field_failure(NativeRunSpecField field) noexcept;
23
24// The symbol_feeds_refused `field` of an installed symbol feed's spec field
25// (66-71), or nullptr for any other field.
26const char* instrument_feed_field_name(NativeRunSpecField field) noexcept;
27
28} // namespace pineforge::source
NativeRunSpecField
Which field a validation refused, in deterministic first-error order.
const char * instrument_feed_field_name(NativeRunSpecField field) noexcept
RunFailureValue run_spec_field_failure(NativeRunSpecField field) noexcept