|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
#include <proper_time.hpp>
Public Member Functions | |
| RelativisticRebalanceTimer (double threshold_tau=5.0, double max_vol=DEFAULT_MAX_VOL) | |
| bool | tick (double new_vol, double dt_days=1.0) noexcept |
| double | tau_since_rebalance () const noexcept |
| Accumulated proper time since the last rebalance. | |
| std::size_t | rebalance_count () const noexcept |
| Total number of rebalance events fired. | |
| double | threshold_tau () const noexcept |
| Threshold for rebalance trigger. | |
| void | reset_timer () noexcept |
| Reset timer (does not reset rebalance_count). | |
Suggests rebalancing when accumulated proper time since the last rebalance exceeds a threshold. This avoids over-trading in high-volatility regimes where each calendar day has a lower informational content (slow proper time).
In high-vol regimes γ > 1 → dτ = dt / γ < dt, so the timer fires less frequently in calendar time — correctly reducing turnover when it matters most.
Definition at line 199 of file proper_time.hpp.
|
explicit |
| threshold_tau | Proper-time threshold in days before suggesting a rebalance. Default: 5.0 days. |
| max_vol | Volatility cap. |
Definition at line 114 of file proper_time.cpp.
|
inlinenoexcept |
Total number of rebalance events fired.
Definition at line 221 of file proper_time.hpp.
|
noexcept |
Reset timer (does not reset rebalance_count).
Definition at line 144 of file proper_time.cpp.
|
inlinenoexcept |
Accumulated proper time since the last rebalance.
Definition at line 216 of file proper_time.hpp.
|
inlinenoexcept |
Threshold for rebalance trigger.
Definition at line 226 of file proper_time.hpp.
|
noexcept |
Advance the timer by one observation.
| new_vol | Current annualised volatility. |
| dt_days | Calendar days elapsed. |
Definition at line 123 of file proper_time.cpp.