PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pf_native_decision_v1 Struct Reference

Where the kernel is, presented to every callback. More...

#include <native_c_api.h>

Data Fields

uint32_t struct_size
 sizeof(pf_native_decision_v1).
 
uint32_t version
 PF_NATIVE_API_VERSION.
 
uint64_t ordinal
 Matching-point ordinal.
 
int32_t interval_index
 Script interval index.
 
int32_t sub_index
 Sub-bar index inside the script bar.
 
int32_t sub_count
 Sub-bars in this script bar (1 when unmagnified).
 
int32_t is_terminal_sub_bar
 1 on the script bar's last sub-bar.
 
int64_t effective_time_ms
 The point's effective decision time.
 
int64_t script_bar_open_ms
 Open of the script bar under delivery.
 
int64_t sub_bar_open_ms
 Open of the sub-bar under delivery.
 
int64_t decision_floor_ms
 Lower bound a new request may be matched at.
 
double price
 Current quote, NaN outside an execution point.
 
uint8_t provenance
 NativePriceProvenance.
 
uint8_t path_phase
 NativePathPhase.
 
uint8_t completion
 NativeCompletionKind.
 
uint8_t quote_kind
 NativeCurrentQuoteKind; 0 when price is NaN.
 

Detailed Description

Where the kernel is, presented to every callback.

A read-only snapshot of NativeDecisionContext plus the current quote: price is the execution point's price where one exists and NaN where the callback has no execution point (the bar's own close calculation).

Definition at line 669 of file native_c_api.h.

Field Documentation

◆ struct_size

uint32_t pf_native_decision_v1::struct_size

sizeof(pf_native_decision_v1).

Definition at line 670 of file native_c_api.h.

◆ version

uint32_t pf_native_decision_v1::version

PF_NATIVE_API_VERSION.

Definition at line 671 of file native_c_api.h.

◆ ordinal

uint64_t pf_native_decision_v1::ordinal

Matching-point ordinal.

Definition at line 672 of file native_c_api.h.

◆ interval_index

int32_t pf_native_decision_v1::interval_index

Script interval index.

Definition at line 673 of file native_c_api.h.

◆ sub_index

int32_t pf_native_decision_v1::sub_index

Sub-bar index inside the script bar.

Definition at line 674 of file native_c_api.h.

◆ sub_count

int32_t pf_native_decision_v1::sub_count

Sub-bars in this script bar (1 when unmagnified).

Definition at line 675 of file native_c_api.h.

◆ is_terminal_sub_bar

int32_t pf_native_decision_v1::is_terminal_sub_bar

1 on the script bar's last sub-bar.

Definition at line 676 of file native_c_api.h.

◆ effective_time_ms

int64_t pf_native_decision_v1::effective_time_ms

The point's effective decision time.

Definition at line 677 of file native_c_api.h.

◆ script_bar_open_ms

int64_t pf_native_decision_v1::script_bar_open_ms

Open of the script bar under delivery.

Definition at line 678 of file native_c_api.h.

◆ sub_bar_open_ms

int64_t pf_native_decision_v1::sub_bar_open_ms

Open of the sub-bar under delivery.

Definition at line 679 of file native_c_api.h.

◆ decision_floor_ms

int64_t pf_native_decision_v1::decision_floor_ms

Lower bound a new request may be matched at.

Definition at line 680 of file native_c_api.h.

◆ price

double pf_native_decision_v1::price

Current quote, NaN outside an execution point.

Definition at line 681 of file native_c_api.h.

◆ provenance

uint8_t pf_native_decision_v1::provenance

NativePriceProvenance.

Definition at line 682 of file native_c_api.h.

◆ path_phase

uint8_t pf_native_decision_v1::path_phase

NativePathPhase.

Definition at line 683 of file native_c_api.h.

◆ completion

uint8_t pf_native_decision_v1::completion

NativeCompletionKind.

Definition at line 684 of file native_c_api.h.

◆ quote_kind

uint8_t pf_native_decision_v1::quote_kind

NativeCurrentQuoteKind; 0 when price is NaN.

Definition at line 685 of file native_c_api.h.


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