143 [[nodiscard]] std::vector<CausalHistory>
145 std::span<const core::OHLCV> bars,
146 std::span<const manifold::SpacetimeEvent> events
155 [[nodiscard]] std::optional<CausalSignal>
157 const CausalHistory& history,
158 std::span<const double> returns,
196 [[nodiscard]] std::string
to_string()
const;
227 [[nodiscard]] std::optional<CausalBacktestResult>
228 run(std::span<const core::OHLCV> bars)
const noexcept;
Relativistic Backtester — AGT-05 public API.
std::optional< CausalBacktestResult > run(std::span< const core::OHLCV > bars) const noexcept
std::size_t look_back() const noexcept
Return the configured look_back window.
std::vector< CausalHistory > build_histories(std::span< const core::OHLCV > bars, std::span< const manifold::SpacetimeEvent > events) const noexcept
std::optional< CausalSignal > compute_signal(const CausalHistory &history, std::span< const double > returns, std::size_t bar_idx) const noexcept
Orchestrates the full relativistic signal-processing pipeline.
Core Integration Engine — AGT-06 public API.
Spacetime Market Manifold — AGT-02 public API (implemented by AGT-06).
static constexpr double SPEED_OF_INFORMATION
IntervalType
Causal character of a spacetime interval.
Comparison of CausalSignal-based strategy vs all-bars baseline strategy.
backtest::PerformanceMetrics baseline_metrics
Performance of the all-bars baseline strategy.
double sharpe_improvement() const noexcept
Improvement in Sharpe ratio: causal − baseline.
double mean_causal_fraction
Mean fraction of bars that were causal across the full dataset.
double sortino_improvement() const noexcept
Improvement in Sortino ratio: causal − baseline.
backtest::PerformanceMetrics causal_metrics
Performance of the causal-only signal strategy.
std::string to_string() const
Format a one-line human-readable summary.
Configuration for the causal cone filter.
bool verbose
If true, emit per-bar diagnostics to stderr.
std::size_t look_back
Number of past bars to scan for causal predecessors.
bool include_lightlike
If true, include LIGHTLIKE (ds² ≈ 0) bars in the causal set.
double c_market
Speed of information (same as SPEED_OF_INFORMATION in manifold).
double causal_fraction() const noexcept
Return the fraction of scanned bars that are causal predecessors.
std::vector< std::size_t > predecessor_indices
Indices into the original bar array for each causal predecessor.
std::size_t total_bars_scanned
Number of bars scanned (including SPACELIKE/excluded ones).
manifold::SpacetimeEvent event
The current bar (the "effect" event).
std::vector< manifold::SpacetimeEvent > causal_predecessors
std::size_t n_causal
Number of causal predecessor bars used.
std::size_t n_total
Total bars in the look-back window.
double causal_fraction
Fraction of bars that are causal.
double causal_mean_return
Mean return, causal bars only.
double causal_momentum
Weighted momentum from causal bars.
double causal_vol
Volatility of causal bar returns.
double all_bars_mean_return
Baseline: mean over ALL look-back bars.
Configuration parameters for the core engine.
A point in 4D spacetime (t, x, y, z).