|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
|
One live request, copied out by strategy_native_working_get_v1. More...
#include <native_c_api.h>
Data Fields | |
| uint32_t | struct_size |
| sizeof(pf_native_working_v1). | |
| uint32_t | version |
| PF_NATIVE_API_VERSION. | |
| uint64_t | incarnation |
| The request's handle. | |
| uint32_t | intent |
| pf_native_intent_t as accepted. | |
| uint32_t | trigger |
| pf_native_trigger_t as accepted. | |
| uint32_t | owner |
| pf_native_owner_t as accepted. | |
| uint32_t | capacity |
| pf_native_capacity_t as accepted. | |
| uint32_t | group_kind |
| pf_native_group_t as accepted. | |
| uint32_t | group_effect |
| pf_native_group_effect_t, 0 when no group. | |
| uint32_t | remaining_kind |
| pf_native_remaining_t. | |
| uint32_t | trigger_state |
| pf_native_trigger_state_t. | |
| uint32_t | origin |
| RequestOrigin: 0 host, 1 kernel liquidation, 2 kernel risk. | |
| uint32_t | reserved0 |
| double | intent_value |
| The intent's own scalar, 0 when it has none. | |
| double | p1 |
| Trigger level 1 (limit / stop / trail offset). | |
| double | p2 |
| Trigger level 2 (stop-limit limit / trail arm). | |
| double | capacity_units |
| Point budget, 0 for immediate capacity. | |
| double | remaining_units |
Valid when remaining_kind is UNITS. | |
| uint64_t | group_id |
| int64_t | group_cohort |
| uint64_t | acceptance_ordinal |
| Birth: the accepting event. | |
| int64_t | decision_time_lower_bound |
| Birth: earliest matchable time. | |
| const char * | label |
| Borrowed; see the struct note. | |
| const char * | comment |
| Borrowed; see the struct note. | |
One live request, copied out by strategy_native_working_get_v1.
label and comment borrow the snapshot taken by the most recent strategy_native_working_len_v1 call on this handle. They stay valid until the next call to that function, or until the host is freed; copy them if the host keeps them longer.
Definition at line 763 of file native_c_api.h.
| uint32_t pf_native_working_v1::struct_size |
sizeof(pf_native_working_v1).
Definition at line 764 of file native_c_api.h.
| uint32_t pf_native_working_v1::version |
PF_NATIVE_API_VERSION.
Definition at line 765 of file native_c_api.h.
| uint64_t pf_native_working_v1::incarnation |
The request's handle.
Definition at line 766 of file native_c_api.h.
| uint32_t pf_native_working_v1::intent |
pf_native_intent_t as accepted.
Definition at line 767 of file native_c_api.h.
| uint32_t pf_native_working_v1::trigger |
pf_native_trigger_t as accepted.
Definition at line 768 of file native_c_api.h.
| uint32_t pf_native_working_v1::owner |
pf_native_owner_t as accepted.
Definition at line 769 of file native_c_api.h.
| uint32_t pf_native_working_v1::capacity |
pf_native_capacity_t as accepted.
Definition at line 770 of file native_c_api.h.
| uint32_t pf_native_working_v1::group_kind |
pf_native_group_t as accepted.
Definition at line 771 of file native_c_api.h.
| uint32_t pf_native_working_v1::group_effect |
pf_native_group_effect_t, 0 when no group.
Definition at line 772 of file native_c_api.h.
| uint32_t pf_native_working_v1::remaining_kind |
Definition at line 773 of file native_c_api.h.
| uint32_t pf_native_working_v1::trigger_state |
Definition at line 774 of file native_c_api.h.
| uint32_t pf_native_working_v1::origin |
RequestOrigin: 0 host, 1 kernel liquidation, 2 kernel risk.
Definition at line 775 of file native_c_api.h.
| uint32_t pf_native_working_v1::reserved0 |
Definition at line 776 of file native_c_api.h.
| double pf_native_working_v1::intent_value |
The intent's own scalar, 0 when it has none.
Definition at line 777 of file native_c_api.h.
| double pf_native_working_v1::p1 |
Trigger level 1 (limit / stop / trail offset).
Definition at line 778 of file native_c_api.h.
| double pf_native_working_v1::p2 |
Trigger level 2 (stop-limit limit / trail arm).
Definition at line 779 of file native_c_api.h.
| double pf_native_working_v1::capacity_units |
Point budget, 0 for immediate capacity.
Definition at line 780 of file native_c_api.h.
| double pf_native_working_v1::remaining_units |
Valid when remaining_kind is UNITS.
Definition at line 781 of file native_c_api.h.
| uint64_t pf_native_working_v1::group_id |
Definition at line 782 of file native_c_api.h.
| int64_t pf_native_working_v1::group_cohort |
Definition at line 783 of file native_c_api.h.
| uint64_t pf_native_working_v1::acceptance_ordinal |
Birth: the accepting event.
Definition at line 784 of file native_c_api.h.
| int64_t pf_native_working_v1::decision_time_lower_bound |
Birth: earliest matchable time.
Definition at line 785 of file native_c_api.h.
| const char* pf_native_working_v1::label |
Borrowed; see the struct note.
Definition at line 786 of file native_c_api.h.
| const char* pf_native_working_v1::comment |
Borrowed; see the struct note.
Definition at line 787 of file native_c_api.h.