|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
#include <pine_strategy_host.hpp>
Public Types | |
| using | Delivery = std::function<void(const Bar&, bool)> |
Public Member Functions | |
| void | feed (const RuntimeContextEvent &, const Delivery &, const std::function< void()> &begin_chart) |
Data Fields | |
| TimeframeAggregator | aggregator |
| std::string | timeframe |
| std::string | chart_timeframe |
| std::string | timezone |
| std::string | session |
| bool | lookahead_on = false |
| bool | gaps_on = false |
| bool | lower_array = false |
| bool | heikinashi = false |
| bool | ha_seeded = false |
| bool | no_loaded_bars = false |
| std::optional< RuntimeSubdivision > | subdivision |
| double | ha_open = 0 |
| double | ha_close = 0 |
| bool | slot_new = true |
| int | sub_bar_index = 0 |
| std::int64_t | requested_index = -1 |
| std::int64_t | slot_open = std::numeric_limits<std::int64_t>::min() |
| std::int64_t | chart_open = std::numeric_limits<std::int64_t>::min() |
| std::int64_t | prior_input = std::numeric_limits<std::int64_t>::min() |
Definition at line 33 of file pine_strategy_host.hpp.
| using pineforge::source::PineRuntimeSecurityCursor::Delivery = std::function<void(const Bar&, bool)> |
Definition at line 47 of file pine_strategy_host.hpp.
| void pineforge::source::PineRuntimeSecurityCursor::feed | ( | const RuntimeContextEvent & | event, |
| const Delivery & | deliver, | ||
| const std::function< void()> & | begin_chart ) |
Definition at line 1961 of file pine_strategy_host.cpp.
References aggregator, pineforge::RuntimeContextEvent::bar, chart_open, chart_timeframe, ha_close, ha_open, ha_seeded, heikinashi, lookahead_on, lower_array, no_loaded_bars, prior_input, requested_index, pineforge::runtime_subdivide(), session, slot_new, slot_open, sub_bar_index, subdivision, pineforge::tf_change(), pineforge::Bar::timestamp, and timezone.
| TimeframeAggregator pineforge::source::PineRuntimeSecurityCursor::aggregator |
Definition at line 34 of file pine_strategy_host.hpp.
Referenced by feed(), and pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| std::string pineforge::source::PineRuntimeSecurityCursor::timeframe |
Definition at line 35 of file pine_strategy_host.hpp.
Referenced by pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| std::string pineforge::source::PineRuntimeSecurityCursor::chart_timeframe |
Definition at line 35 of file pine_strategy_host.hpp.
Referenced by feed(), and pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| std::string pineforge::source::PineRuntimeSecurityCursor::timezone |
Definition at line 35 of file pine_strategy_host.hpp.
Referenced by feed(), and pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| std::string pineforge::source::PineRuntimeSecurityCursor::session |
Definition at line 35 of file pine_strategy_host.hpp.
Referenced by feed(), and pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| bool pineforge::source::PineRuntimeSecurityCursor::lookahead_on = false |
Definition at line 36 of file pine_strategy_host.hpp.
Referenced by feed(), and pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| bool pineforge::source::PineRuntimeSecurityCursor::gaps_on = false |
Definition at line 36 of file pine_strategy_host.hpp.
Referenced by pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| bool pineforge::source::PineRuntimeSecurityCursor::lower_array = false |
Definition at line 36 of file pine_strategy_host.hpp.
Referenced by feed(), and pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| bool pineforge::source::PineRuntimeSecurityCursor::heikinashi = false |
Definition at line 37 of file pine_strategy_host.hpp.
Referenced by feed(), and pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| bool pineforge::source::PineRuntimeSecurityCursor::ha_seeded = false |
Definition at line 37 of file pine_strategy_host.hpp.
Referenced by feed().
| bool pineforge::source::PineRuntimeSecurityCursor::no_loaded_bars = false |
Definition at line 38 of file pine_strategy_host.hpp.
Referenced by feed(), and pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| std::optional<RuntimeSubdivision> pineforge::source::PineRuntimeSecurityCursor::subdivision |
Definition at line 39 of file pine_strategy_host.hpp.
Referenced by feed(), and pineforge::source::PineStrategyHost::make_runtime_security_cursor().
| double pineforge::source::PineRuntimeSecurityCursor::ha_open = 0 |
Definition at line 40 of file pine_strategy_host.hpp.
Referenced by feed().
| double pineforge::source::PineRuntimeSecurityCursor::ha_close = 0 |
Definition at line 40 of file pine_strategy_host.hpp.
Referenced by feed().
| bool pineforge::source::PineRuntimeSecurityCursor::slot_new = true |
Definition at line 41 of file pine_strategy_host.hpp.
Referenced by feed().
| int pineforge::source::PineRuntimeSecurityCursor::sub_bar_index = 0 |
Definition at line 42 of file pine_strategy_host.hpp.
Referenced by feed().
| std::int64_t pineforge::source::PineRuntimeSecurityCursor::requested_index = -1 |
Definition at line 43 of file pine_strategy_host.hpp.
Referenced by feed().
| std::int64_t pineforge::source::PineRuntimeSecurityCursor::slot_open = std::numeric_limits<std::int64_t>::min() |
Definition at line 44 of file pine_strategy_host.hpp.
Referenced by feed().
| std::int64_t pineforge::source::PineRuntimeSecurityCursor::chart_open = std::numeric_limits<std::int64_t>::min() |
Definition at line 45 of file pine_strategy_host.hpp.
Referenced by feed().
| std::int64_t pineforge::source::PineRuntimeSecurityCursor::prior_input = std::numeric_limits<std::int64_t>::min() |
Definition at line 46 of file pine_strategy_host.hpp.
Referenced by feed().