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

Versioned native run specification. More...

#include <pineforge.h>

Data Fields

uint32_t struct_size
 
const char * session_key
 
uint64_t run_number
 
const char * input_tf
 
const char * script_tf
 
const char * ticker
 
const char * tickerid
 
const char * type
 
const char * currency
 
const char * basecurrency
 
const char * description
 
const char * volumetype
 
const char * timezone
 
const char * session
 
const char * chart_timezone
 
double initial_capital
 
double point_value
 
double account_fx
 
double price_tick
 
uint32_t slippage_ticks
 
uint32_t fee_kind
 
double fee_value
 
uint32_t optional_mask
 
uint32_t close_execution
 
uint32_t allowed_open_directions
 
double quantity_grid
 
double max_abs_units
 
double initial_margin_fraction
 
uint64_t max_open_lots
 

Detailed Description

Versioned native run specification.

All string pointers are non-null. session may be empty (all-day literal). session_key, timeframes, timezone and tickerid are nonempty. optional_mask bits: 0 quantity_grid, 1 max_abs_units, 2 initial_margin_fraction, 3 max_open_lots.

Definition at line 469 of file pineforge.h.

Field Documentation

◆ struct_size

uint32_t pf_native_run_spec_v1::struct_size

Definition at line 470 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ session_key

const char* pf_native_run_spec_v1::session_key

Definition at line 471 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ run_number

uint64_t pf_native_run_spec_v1::run_number

Definition at line 471 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ input_tf

const char* pf_native_run_spec_v1::input_tf

Definition at line 472 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ script_tf

const char * pf_native_run_spec_v1::script_tf

Definition at line 472 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ ticker

const char* pf_native_run_spec_v1::ticker

Definition at line 473 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ tickerid

const char * pf_native_run_spec_v1::tickerid

Definition at line 473 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ type

const char * pf_native_run_spec_v1::type

Definition at line 473 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ currency

const char * pf_native_run_spec_v1::currency

Definition at line 473 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ basecurrency

const char * pf_native_run_spec_v1::basecurrency

Definition at line 473 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ description

const char * pf_native_run_spec_v1::description

Definition at line 473 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ volumetype

const char * pf_native_run_spec_v1::volumetype

Definition at line 473 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ timezone

const char* pf_native_run_spec_v1::timezone

Definition at line 474 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ session

const char * pf_native_run_spec_v1::session

Definition at line 474 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ chart_timezone

const char * pf_native_run_spec_v1::chart_timezone

Definition at line 474 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ initial_capital

double pf_native_run_spec_v1::initial_capital

Definition at line 475 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ point_value

double pf_native_run_spec_v1::point_value

Definition at line 475 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ account_fx

double pf_native_run_spec_v1::account_fx

Definition at line 475 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ price_tick

double pf_native_run_spec_v1::price_tick

Definition at line 475 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ slippage_ticks

uint32_t pf_native_run_spec_v1::slippage_ticks

Definition at line 476 of file pineforge.h.

◆ fee_kind

uint32_t pf_native_run_spec_v1::fee_kind

Definition at line 476 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ fee_value

double pf_native_run_spec_v1::fee_value

Definition at line 476 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ optional_mask

uint32_t pf_native_run_spec_v1::optional_mask

Definition at line 477 of file pineforge.h.

◆ close_execution

uint32_t pf_native_run_spec_v1::close_execution

Definition at line 477 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ allowed_open_directions

uint32_t pf_native_run_spec_v1::allowed_open_directions

Definition at line 477 of file pineforge.h.

Referenced by make_spec(), and make_spec().

◆ quantity_grid

double pf_native_run_spec_v1::quantity_grid

Definition at line 478 of file pineforge.h.

◆ max_abs_units

double pf_native_run_spec_v1::max_abs_units

Definition at line 478 of file pineforge.h.

◆ initial_margin_fraction

double pf_native_run_spec_v1::initial_margin_fraction

Definition at line 478 of file pineforge.h.

◆ max_open_lots

uint64_t pf_native_run_spec_v1::max_open_lots

Definition at line 479 of file pineforge.h.


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