PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
bar.hpp
Go to the documentation of this file.
1#pragma once
2#include <cstdint>
3
4namespace pineforge {
5
6struct Bar {
7 double open, high, low, close, volume;
8 int64_t timestamp; // Unix milliseconds
9};
10
11// One provider-neutral executed-trade update consumed by BacktestEngine's
12// realtime stream. `sequence` is assigned by the normalized data source: zero
13// means unavailable, while non-zero values must increase strictly so callers
14// cannot silently replay or reorder records.
15struct TradeTick {
16 int64_t timestamp; // Unix milliseconds
17 uint64_t sequence;
18 double price;
19 double quantity; // normalized size, accumulated into bar volume
20};
21
22} // namespace pineforge
double open
Definition bar.hpp:7
double close
Definition bar.hpp:7
double low
Definition bar.hpp:7
double volume
Definition bar.hpp:7
int64_t timestamp
Definition bar.hpp:8
double high
Definition bar.hpp:7
uint64_t sequence
Definition bar.hpp:17
int64_t timestamp
Definition bar.hpp:16