|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
|
Go to the source code of this file.
Enumerations | |
| enum | { kBarCount = 4 } |
Functions | |
| static int | on_bar (void *user, const pf_bar_t *bar, const pf_native_decision_v1 *at) |
| static pf_native_run_spec_v1 | make_spec (void) |
| int | main (void) |
Variables | |
| static const pf_bar_t | kBars [] |
| anonymous enum |
| Enumerator | |
|---|---|
| kBarCount | |
Definition at line 23 of file hello_kernel_c.c.
|
static |
Definition at line 32 of file hello_kernel_c.c.
References pf_native_request_v1::intent, pf_native_request_v1::intent_value, pf_native_request_v1::label, PF_NATIVE_API_VERSION, PF_NATIVE_INTENT_FLATTEN, PF_NATIVE_INTENT_TRANSACT, PF_NATIVE_OK, strategy_native_submit_v1(), pf_native_request_v1::struct_size, and pf_native_request_v1::version.
Referenced by grid_without_a_ladder_is_refused(), main(), and run_mode().
|
static |
Definition at line 62 of file hello_kernel_c.c.
References pf_native_run_spec_v1::account_fx, pf_native_run_spec_v1::allowed_open_directions, pf_native_run_spec_v1::basecurrency, pf_native_run_spec_v1::chart_timezone, pf_native_run_spec_v1::close_execution, pf_native_run_spec_v1::currency, pf_native_run_spec_v1::description, pf_native_run_spec_v1::fee_kind, pf_native_run_spec_v1::fee_value, pf_native_run_spec_v1::initial_capital, pf_native_run_spec_v1::input_tf, pf_native_run_spec_v1::point_value, pf_native_run_spec_v1::price_tick, pf_native_run_spec_v1::run_number, pf_native_run_spec_v1::script_tf, pf_native_run_spec_v1::session, pf_native_run_spec_v1::session_key, pf_native_run_spec_v1::struct_size, pf_native_run_spec_v1::ticker, pf_native_run_spec_v1::tickerid, pf_native_run_spec_v1::timezone, pf_native_run_spec_v1::type, and pf_native_run_spec_v1::volumetype.
Referenced by grid_without_a_ladder_is_refused(), main(), main(), and run_mode().
| int main | ( | void | ) |
Definition at line 91 of file hello_kernel_c.c.
References pf_trade_t::entry_price, pf_trade_t::exit_price, pf_trade_t::is_long, kBarCount, kBars, make_spec(), on_bar(), PF_NATIVE_API_VERSION, PF_NATIVE_OK, pf_trade_t::pnl, pf_trade_t::qty, strategy_configure_native_v1(), strategy_get_last_error(), strategy_native_host_create_v1(), strategy_native_host_free(), strategy_native_report_free_v1(), strategy_native_run_v1(), pf_report_t::total_trades, and pf_report_t::trades.
|
static |
Definition at line 17 of file hello_kernel_c.c.
Referenced by main(), main(), and run_mode().