PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
hello_kernel_c.c File Reference
#include <pineforge/pineforge.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for hello_kernel_c.c:

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 []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kBarCount 

Definition at line 23 of file hello_kernel_c.c.

Function Documentation

◆ on_bar()

◆ make_spec()

◆ main()

Variable Documentation

◆ kBars

const pf_bar_t kBars[]
static
Initial value:
= {
{100.0, 102.0, 99.0, 101.0, 4.0, 0},
{102.0, 103.0, 101.0, 102.0, 4.0, 300000},
{103.0, 104.0, 102.0, 103.5, 4.0, 600000},
{103.5, 105.0, 103.0, 104.0, 4.0, 900000}
}

Definition at line 17 of file hello_kernel_c.c.

Referenced by main(), main(), and run_mode().