PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pf_stream_order_action_t Struct Reference

One physical emulator lot action. More...

#include <pineforge.h>

Data Fields

uint64_t sequence
 
int64_t timestamp_ms
 
int32_t bar_index
 
int32_t is_entry
 
int32_t is_long
 
double quantity
 
double price
 
const char * order_id
 
const char * comment
 
uint64_t entry_incarnation
 

Detailed Description

One physical emulator lot action.

is_long describes the position side: buy = is_entry == is_long. A reversal is exits followed by an entry. price/time are emulator reference values, not external broker fills. Strings are borrowed until the next stream mutation or queue clear.

Definition at line 679 of file pineforge.h.

Field Documentation

◆ sequence

uint64_t pf_stream_order_action_t::sequence

Definition at line 680 of file pineforge.h.

◆ timestamp_ms

int64_t pf_stream_order_action_t::timestamp_ms

Definition at line 681 of file pineforge.h.

◆ bar_index

int32_t pf_stream_order_action_t::bar_index

Definition at line 682 of file pineforge.h.

◆ is_entry

int32_t pf_stream_order_action_t::is_entry

Definition at line 683 of file pineforge.h.

◆ is_long

int32_t pf_stream_order_action_t::is_long

Definition at line 684 of file pineforge.h.

◆ quantity

double pf_stream_order_action_t::quantity

Definition at line 685 of file pineforge.h.

◆ price

double pf_stream_order_action_t::price

Definition at line 686 of file pineforge.h.

◆ order_id

const char* pf_stream_order_action_t::order_id

Definition at line 687 of file pineforge.h.

◆ comment

const char* pf_stream_order_action_t::comment

Definition at line 688 of file pineforge.h.

◆ entry_incarnation

uint64_t pf_stream_order_action_t::entry_incarnation

Definition at line 689 of file pineforge.h.


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