PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
Data Structures
Here are the data structures with brief descriptions:
[detail level 123456]
 ►Npineforge
 ►Nstd
 Cpf_bar_tSingle OHLCV bar pushed into the engine
 Cpf_boundary_receipt_v1Receipt the callback fills
 Cpf_equity_point_tSingle per-script-bar equity point
 Cpf_equity_stats_tEquity-curve-derived statistics (all-trades only, like TV)
 Cpf_execution_boundary_v1Boundary handed to the observer
 Cpf_execution_observation_v1Snapshot of the execution state, filled by strategy_execution_observation_v1()
 Cpf_execution_observer_v1Observer descriptor for strategy_set_execution_observer_v1()
 Cpf_field_desc_t
 Cpf_metrics_tComposite metrics container: trade stats (all / long / short) + equity-curve stats
 Cpf_native_anchored_level_view_v1One anchored leg's materialization, handed to pf_native_callbacks_v1::on_anchored_level exactly once, before its armed event — NativeAnchoredLevelView
 Cpf_native_applied_v1One applied execution, presented to on_applied
 Cpf_native_callbacks_v1The C host's strategy logic
 Cpf_native_close_view_v1The facts a host-sized CLOSE is resolved from, handed to pf_native_callbacks_v1::on_close_units
 Cpf_native_decision_v1Where the kernel is, presented to every callback
 Cpf_native_event_v1One recorded event, read back by strategy_native_events_v1
 Cpf_native_fx_curve_v1Immutable timestamped account-currency FX curve for a native run
 Cpf_native_lot_excursion_v1One closing lot's booking facts — ClosedLotExcursionFacts (RULING A48)
 Cpf_native_margin_call_v1One kernel-issued liquidation that filled, whole — the C spelling of native_order::MarginCallEvent, copied out by strategy_native_margin_call_v1
 Cpf_native_margin_decision_v1The host's answer to one requirement view — NativeMarginDecision
 Cpf_native_margin_view_v1The facts one margin hook is handed — the C spelling of NativeMarginRequirementView, NativeMarginCheckPoint and NativeMarginCallView, which differ only in which of these facts they carry
 Cpf_native_open_lot_v1One open physical lot, copied out by strategy_native_open_lot_get_v1 — the C spelling of NativeOpenLot (R5 gap lane N18): the book that strategy_native_position_v1 aggregates, lot by lot, marked at the price strategy_native_open_lot_count_v1 was given
 Cpf_native_precommit_view_v1The last facts before one execution's physical effect, handed to pf_native_callbacks_v1::on_precommit — NativePrecommitView: the plan, the prices, the settlement inspection, and the account the fill would leave (the projection's closed rows' P&L, borrowed for the call, in roster order)
 Cpf_native_request_v1One order request
 Cpf_native_risk_state_v1The run's generic risk ledger — the C spelling of NativeRiskState (L9)
 Cpf_native_run_spec_ext_v1The run-specification fields pf_native_run_spec_v1 predates
 Cpf_native_run_spec_v1Versioned native run specification
 Cpf_native_state_v1The run's lifecycle and its typed failure
 Cpf_native_subscription_v1One declared higher-timeframe series of pf_native_run_spec_ext_v1
 Cpf_native_terms_v1The price half of the terms pf_native_callbacks_v1::on_execution_terms answers — ExecutionTerms less its units, which pf_native_callbacks_v1::on_close_units answers for a host-sized close
 Cpf_native_terms_view_v1The facts of one matching candidate, handed to pf_native_callbacks_v1::on_execution_terms — the price half of NativeExecutionTermsFacts
 Cpf_native_timeframe_interval_v1The calendar interval of the bucket delivered to pf_native_callbacks_v1::on_timeframe_bar
 Cpf_native_trail_state_v1The trail projection of strategy_native_trail_state_v1 — the C spelling of NativeTrailState
 Cpf_native_working_v1One live request, copied out by strategy_native_working_get_v1
 Cpf_output_event_v1_tOne recorded event, copied by strategy_outputs_event_get
 Cpf_pending_order_v1_t
 Cpf_report_envelope_v1Opt-in envelope, not an extension of the caller-allocated ABI-4 report
 Cpf_report_metadata_v1Fixed-size report metadata
 Cpf_report_sequence_v1Logical cardinality and explicit capture policy for one sequence
 Cpf_report_sink_diagnostics_v1Fixed-size annualization provenance from the emitted v1 records
 Cpf_report_sink_fd_v1Borrowed sequential stream sink descriptor (CX-SINK-B1/B2)
 Cpf_report_sink_receipt_v1Trailer receipt (DESIGN 6:1291-1298,1305-1306)
 Cpf_report_sink_summary_v1Report-only T-row summary (CX-SINK-B5a), independent of the 144-byte trailer receipt above
 Cpf_report_sink_v1Path sink descriptor (DESIGN 6:1283-1289, 1307-1309)
 Cpf_report_tBacktest report filled by run_backtest / run_backtest_full
 Cpf_scratch_tables_v1Version 1 scratch-table admission maxima, in keys/rows and key bytes
 Cpf_security_diag_tPer-request.security() site diagnostic counters
 Cpf_selected_plan_request_v1One selected-window planning request
 Cpf_selected_plan_result_v1One complete planner result, plain data, written whole by a successful call
 Cpf_selected_window_config_v1Selected-window configuration, handed to strategy_set_selected_window_v1()
 Cpf_selected_window_counts_v1Native-owned counts for the latest attempt, filled by strategy_selected_window_counts_v1()
 Cpf_stream_order_action_tOne physical emulator lot action
 Cpf_trace_entry_tSingle per-bar trace entry
 Cpf_trade_stats_tTrade-level statistics block — computed once each for all / long / short
 Cpf_trade_tClosed-trade record returned in pf_report_t::trades
 Cpf_trade_tick_tOne provider-neutral realtime executed-trade update
 Cpf_version_tRuntime version descriptor returned by pf_version_get