|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
#include <backtest.hpp>
Public Member Functions | |
| Backtester (BacktestConfig config=BacktestConfig{}) | |
| Construct with configuration. | |
| std::optional< BacktestComparison > | run (std::span< const BarData > bars, std::span< const double > asset_returns) const noexcept |
| std::optional< LorentzCorrectedSeries > | apply_corrections (std::span< const BarData > bars) const noexcept |
Runs raw and relativistic strategies side by side and reports metrics.
Usage pattern:
Definition at line 249 of file backtest.hpp.
|
explicit |
Construct with configuration.
Definition at line 21 of file backtester.cpp.
|
noexcept |
Compute only the Lorentz-corrected signal series (no strategy eval). Useful for inspection / visualisation.
Definition at line 26 of file backtester.cpp.
|
noexcept |
Run a full side-by-side backtest.
bars — One entry per time step: raw signal, β, benchmark return.returns — Realised asset returns aligned to bars (same length). Signalling rule: strategy return = sign(signal) × asset ret.BacktestComparison containing both metric sets, or nullopt if:
Definition at line 58 of file backtester.cpp.