PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pf_native_trail_state_v1 Struct 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.
 

Detailed Description

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 851 of file native_c_api.h.

Field Documentation

◆ struct_size

uint32_t pf_native_trail_state_v1::struct_size

sizeof(pf_native_trail_state_v1).

Definition at line 852 of file native_c_api.h.

◆ version

uint32_t pf_native_trail_state_v1::version

PF_NATIVE_API_VERSION.

Definition at line 853 of file native_c_api.h.

◆ activated

uint32_t pf_native_trail_state_v1::activated

0/1: the arm price has been reached.

Definition at line 854 of file native_c_api.h.

◆ reserved0

uint32_t pf_native_trail_state_v1::reserved0

Definition at line 855 of file native_c_api.h.

◆ best_price

double pf_native_trail_state_v1::best_price

Running best; 0 before the arm.

Definition at line 856 of file native_c_api.h.

◆ current_level

double pf_native_trail_state_v1::current_level

The stop the best is riding; 0 before the arm.

Definition at line 857 of file native_c_api.h.

◆ activation_ordinal

uint64_t pf_native_trail_state_v1::activation_ordinal

The TrailArm event; 0 before the arm.

Definition at line 858 of file native_c_api.h.


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