|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
Everything the kernel knows about WHERE a point is, as one owning value: its event ordinal, the script interval index, the named input interval index, the nominal and scheduled-eligible opens, the last traded close, the next period and next input opens, the effective time the account converts and hashes at, the source price time, and the three classifications above. More...
#include <market_driver.hpp>
Data Fields | |
| uint64_t | ordinal = 0 |
| int | interval_index = 0 |
| int | input_interval_index = 0 |
| int64_t | open_ms = 0 |
| int64_t | eligible_open_ms = 0 |
| int64_t | last_traded_close_ms = 0 |
| int64_t | next_period_open_ms = 0 |
| int64_t | next_input_open_ms = 0 |
| int64_t | effective_time_ms = 0 |
| int64_t | source_price_time_ms = 0 |
| NativePriceProvenance | provenance = NativePriceProvenance::Confirmed |
| NativePathPhase | path_phase = NativePathPhase::None |
| NativeCompletionKind | completion = NativeCompletionKind::Confirmed |
Everything the kernel knows about WHERE a point is, as one owning value: its event ordinal, the script interval index, the named input interval index, the nominal and scheduled-eligible opens, the last traded close, the next period and next input opens, the effective time the account converts and hashes at, the source price time, and the three classifications above.
A host reads it through NativeDecisionContext; mutating a copy cannot move the consumer's floor, matching time or after-calculation coordinate.
Definition at line 72 of file market_driver.hpp.
| uint64_t pineforge::native_driver_v5::NativeCoordinate::ordinal = 0 |
Definition at line 73 of file market_driver.hpp.
Referenced by pineforge::source::PineExecutionAdapter::margin_check_allowed(), and pineforge::source::PineExecutionAdapter::resolve_margin_call_units().
| int pineforge::native_driver_v5::NativeCoordinate::interval_index = 0 |
Definition at line 74 of file market_driver.hpp.
Referenced by pineforge::source::PineStrategyHost::fixture_cap_calculation(), pineforge::source::PineStrategyHost::fixture_cap_clock(), pineforge::source::PineExecutionAdapter::on_applied(), pineforge::source::PineExecutionAdapter::on_bar_open(), pineforge::source::PineStrategyHost::on_native_bar(), and pineforge::source::PineExecutionAdapter::validate_precommit().
| int pineforge::native_driver_v5::NativeCoordinate::input_interval_index = 0 |
Definition at line 79 of file market_driver.hpp.
Referenced by pineforge::source::PineScheduler::bar(), and pineforge::source::PineScheduler::recalculate().
| int64_t pineforge::native_driver_v5::NativeCoordinate::open_ms = 0 |
Definition at line 80 of file market_driver.hpp.
Referenced by pineforge::source::PineExecutionAdapter::resolve_margin_call_units(), and pineforge::source::PineExecutionAdapter::resolve_margin_requirement().
| int64_t pineforge::native_driver_v5::NativeCoordinate::eligible_open_ms = 0 |
Definition at line 81 of file market_driver.hpp.
| int64_t pineforge::native_driver_v5::NativeCoordinate::last_traded_close_ms = 0 |
Definition at line 82 of file market_driver.hpp.
| int64_t pineforge::native_driver_v5::NativeCoordinate::next_period_open_ms = 0 |
Definition at line 83 of file market_driver.hpp.
| int64_t pineforge::native_driver_v5::NativeCoordinate::next_input_open_ms = 0 |
Definition at line 84 of file market_driver.hpp.
| int64_t pineforge::native_driver_v5::NativeCoordinate::effective_time_ms = 0 |
Definition at line 85 of file market_driver.hpp.
Referenced by pineforge::source::PineExecutionAdapter::validate_precommit().
| int64_t pineforge::native_driver_v5::NativeCoordinate::source_price_time_ms = 0 |
Definition at line 86 of file market_driver.hpp.
| NativePriceProvenance pineforge::native_driver_v5::NativeCoordinate::provenance = NativePriceProvenance::Confirmed |
Definition at line 87 of file market_driver.hpp.
Referenced by pineforge::source::PineScheduler::coof_recalculation_due(), pineforge::source::PineStrategyHost::finish_applied_admission(), pineforge::source::PineExecutionAdapter::on_applied(), and pineforge::source::PineStrategyHost::on_native_applied().
| NativePathPhase pineforge::native_driver_v5::NativeCoordinate::path_phase = NativePathPhase::None |
| NativeCompletionKind pineforge::native_driver_v5::NativeCoordinate::completion = NativeCompletionKind::Confirmed |
Definition at line 89 of file market_driver.hpp.