|
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 | |
| RegimeFilteredBacktester (BacktestConfig config=BacktestConfig{}) | |
| Construct with optional configuration (forwarded to inner Backtester). | |
| std::optional< RegimeBacktestResult > | run (std::span< const BarDataEx > bars) const noexcept |
Static Public Attributes | |
| static constexpr double | LIGHTLIKE_EPSILON = 1e-6 |
| Threshold below which ds² is considered LIGHTLIKE (|ds²| < epsilon). | |
Definition at line 335 of file backtest.hpp.
|
explicit |
Construct with optional configuration (forwarded to inner Backtester).
Definition at line 63 of file regime_filtered_backtester.cpp.
|
noexcept |
Run the three-way regime-filtered backtest.
bars — Extended bar data with ds² per bar and realised asset returns.RegimeBacktestResult, or nullopt if insufficient data.
always_in: return_t = sign(raw_signal_t) × asset_return_t timelike_only: return_t = sign(raw_signal_t) × asset_return_t if ds²_t < 0 = 0 otherwise timelike_relativistic: return_t = sign(raw_signal_t) × clamp(γ_t, 1, max_γ) × asset_return_t if ds²_t < 0 = 0 otherwise
Definition at line 69 of file regime_filtered_backtester.cpp.
|
staticconstexpr |
Threshold below which ds² is considered LIGHTLIKE (|ds²| < epsilon).
Definition at line 338 of file backtest.hpp.