|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
The trail projection of strategy_native_trail_state_v1 — the C spelling of NativeTrailState.
More...
#include <native_c_api.h>
Data Fields | |
| uint32_t | struct_size |
| sizeof(pf_native_trail_state_v1). | |
| uint32_t | version |
| PF_NATIVE_API_VERSION. | |
| uint32_t | activated |
| 0/1: the arm price has been reached. | |
| uint32_t | reserved0 |
| double | best_price |
| Running best; 0 before the arm. | |
| double | current_level |
| The stop the best is riding; 0 before the arm. | |
| uint64_t | activation_ordinal |
| The TrailArm event; 0 before the arm. | |
The trail projection of strategy_native_trail_state_v1 — the C spelling of NativeTrailState.
Before the arm is reached activated is 0 and every other field is 0; once armed, best_price and current_level are the exact raw matcher values and activation_ordinal identifies the TrailArm event that began tracking.
Definition at line 1829 of file native_c_api.h.
| uint32_t pf_native_trail_state_v1::struct_size |
sizeof(pf_native_trail_state_v1).
Definition at line 1830 of file native_c_api.h.
| uint32_t pf_native_trail_state_v1::version |
PF_NATIVE_API_VERSION.
Definition at line 1831 of file native_c_api.h.
| uint32_t pf_native_trail_state_v1::activated |
0/1: the arm price has been reached.
Definition at line 1832 of file native_c_api.h.
| uint32_t pf_native_trail_state_v1::reserved0 |
Definition at line 1833 of file native_c_api.h.
| double pf_native_trail_state_v1::best_price |
Running best; 0 before the arm.
Definition at line 1834 of file native_c_api.h.
| double pf_native_trail_state_v1::current_level |
The stop the best is riding; 0 before the arm.
Definition at line 1835 of file native_c_api.h.
| uint64_t pf_native_trail_state_v1::activation_ordinal |
The TrailArm event; 0 before the arm.
Definition at line 1836 of file native_c_api.h.