|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI 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. | |
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.
| uint32_t pf_native_terms_v1::struct_size |
sizeof(pf_native_terms_v1).
Definition at line 1994 of file native_c_api.h.
| uint32_t pf_native_terms_v1::version |
PF_NATIVE_API_VERSION.
Definition at line 1995 of file native_c_api.h.
| double pf_native_terms_v1::resolved_price |
The price to settle at.
Definition at line 1996 of file native_c_api.h.
| uint32_t pf_native_terms_v1::shape |
Definition at line 1997 of file native_c_api.h.
| uint32_t pf_native_terms_v1::grid_policy |
Definition at line 1998 of file native_c_api.h.