106 [[nodiscard]] std::optional<backtest::BacktestComparison>
107 run_backtest(std::span<const OHLCV> bars)
const noexcept;
113 [[nodiscard]] std::optional<PipelineBar>
120 [[nodiscard]] std::span<const OHLCV>
stream_window()
const noexcept;
125 [[nodiscard]]
static std::vector<double>
126 compute_returns(std::span<const double> prices)
noexcept;
130 [[nodiscard]]
static std::vector<BetaVelocity>
131 compute_betas(std::span<const double> prices,
132 double max_velocity)
noexcept;
136 to_event(
const OHLCV& bar,
double momentum_indicator)
noexcept;
139 std::vector<OHLCV> stream_window_;
Relativistic Backtester — AGT-05 public API.
Orchestrates the full relativistic signal-processing pipeline.
std::optional< PipelineBar > process_stream_bar(const OHLCV &bar) noexcept
std::optional< backtest::BacktestComparison > run_backtest(std::span< const OHLCV > bars) const noexcept
std::span< const OHLCV > stream_window() const noexcept
Return a read-only view of the current streaming bar window.
void reset_stream() noexcept
Reset streaming state (clear internal bar window).
Physical and financial constants for the SRFM system.
Spacetime Market Manifold — AGT-02 public API (implemented by AGT-06).
static constexpr std::size_t MIN_RETURN_SERIES_LENGTH
IntervalType
Causal character of a spacetime interval.
Lorentz factor γ = 1/√(1−β²). Always ≥ 1.0 for valid beta.
Configuration for a backtest run.
Configuration parameters for the core engine.
double effective_mass
Effective mass proxy for momentum corrections (m_eff in p_rel = γ m v).
double max_market_velocity
Maximum market velocity used to normalise β (BetaCalculator denominator).
bool verbose
If true, emit per-bar debug output to stderr.
backtest::BacktestConfig backtest_cfg
Backtest configuration forwarded to the Backtester.
std::size_t min_bars
Minimum number of bars required to run a backtest.
A single OHLCV bar of market data.
double open
Opening price.
double close
Closing price.
double timestamp
Bar index or Unix epoch seconds.
double volume
Traded volume.
Intermediate state for one bar after full pipeline processing.
double price_return
log or simple return for this bar
BetaVelocity beta
Normalised market velocity.
manifold::IntervalType interval_type
Causal character vs prior bar.
manifold::SpacetimeEvent event
Spacetime embedding.
LorentzFactor gamma
Lorentz factor at this bar.
OHLCV raw
Original bar data.
A point in 4D spacetime (t, x, y, z).
Shared primitive types for the Special Relativity in Financial Modeling (SRFM) system.