PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pf_native_terms_v1 Struct Reference

The 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. More...

#include <native_c_api.h>

Data Fields

uint32_t struct_size
 sizeof(pf_native_terms_v1).
 
uint32_t version
 PF_NATIVE_API_VERSION.
 
double resolved_price
 The price to settle at.
 
uint32_t shape
 pf_native_opening_shape_t.
 
uint32_t grid_policy
 pf_native_grid_policy_t.
 

Detailed Description

The 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.

The runtime fills it with the kernel's default (default_resolved_price, TRANSACT, SNAP) before the call.

Definition at line 1993 of file native_c_api.h.

Field Documentation

◆ struct_size

uint32_t pf_native_terms_v1::struct_size

sizeof(pf_native_terms_v1).

Definition at line 1994 of file native_c_api.h.

◆ version

uint32_t pf_native_terms_v1::version

PF_NATIVE_API_VERSION.

Definition at line 1995 of file native_c_api.h.

◆ resolved_price

double pf_native_terms_v1::resolved_price

The price to settle at.

Definition at line 1996 of file native_c_api.h.

◆ shape

uint32_t pf_native_terms_v1::shape

pf_native_opening_shape_t.

Definition at line 1997 of file native_c_api.h.

◆ grid_policy

uint32_t pf_native_terms_v1::grid_policy

pf_native_grid_policy_t.

Definition at line 1998 of file native_c_api.h.


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