PineForge HPO 1.11.0
Native hyperparameter optimization for PineForge strategies
Loading...
Searching...
No Matches
symbol_feeds.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <pineforge/pineforge.h>
4
5#include <cstdint>
6#include <string>
7#include <variant>
8#include <vector>
9
10namespace pineforge::hpo {
11
13struct SymbolFact {
15 std::string field;
17 std::variant<std::string, double> value;
18};
19
21struct SymbolFeed {
23 std::string timeframe;
25 std::vector<pf_bar_t> bars;
27 std::vector<std::int64_t> close_ms;
30};
31
33struct SymbolData {
35 std::string symbol;
37 std::vector<SymbolFact> facts;
39 std::vector<SymbolFeed> feeds;
40};
41
43using SymbolFeeds = std::vector<SymbolData>;
44
45}
std::vector< SymbolData > SymbolFeeds
Study-owned collection shared read-only by all trial workers.
Fixed other-symbol data installed into every fresh trial strategy.
std::string symbol
Exact request.security symbol string, including exchange prefix and suffix.
std::vector< SymbolFact > facts
Catalog facts, installed before any of this symbol's feeds.
std::vector< SymbolFeed > feeds
One independently supplied feed per requested timeframe; no aggregation.
One catalog fact installed through strategy_set_symbol_facts.
std::string field
Engine fact name: canonical, type, timezone, session, currency, or mintick.
std::variant< std::string, double > value
Textual facts or the positive finite mintick value.
Owned, immutable-after-loading bars for one exact request timeframe.
std::vector< std::int64_t > close_ms
Explicit or derived closing times, one per bar.
std::vector< pf_bar_t > bars
Bars in strictly increasing open-time order; empty means requests read na.
std::string timeframe
Canonical Pine timeframe spelling, such as 240 or 1D.
std::string source_values_sha256
SHA-256 of the engine harness's little-endian bar/close value encoding.