|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
|
An immutable account-currency FX curve: parallel arrays of effective-from timestamps in epoch milliseconds and the account-currency units per one unit of the symbol's quote currency. More...
#include <native_fx_curve.hpp>
Data Fields | |
| std::vector< std::int64_t > | effective_from_ms |
| std::vector< double > | account_per_quote |
An immutable account-currency FX curve: parallel arrays of effective-from timestamps in epoch milliseconds and the account-currency units per one unit of the symbol's quote currency.
The latest point whose timestamp is at or before the current broker event is active, and NativeRunSpec::account_fx is the fallback before the first point. Staged with NativeStrategyHost::configure_native_fx_curve while the host is Ready, it is the run's FX epoch for a batch and a confirmed-bar stream alike, and a step of it is a NativeMarginCheckKind::FxRoll check point. Pinned by tests/test_native_fx_curve.cpp and tests/test_native_margin_fx_roll.cpp.
Definition at line 19 of file native_fx_curve.hpp.
| std::vector<std::int64_t> pineforge::native_fx_curve_v1::NativeFxCurve::effective_from_ms |
Definition at line 20 of file native_fx_curve.hpp.
| std::vector<double> pineforge::native_fx_curve_v1::NativeFxCurve::account_per_quote |
Definition at line 21 of file native_fx_curve.hpp.