|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
#include <hawking.hpp>
Classes | |
| struct | Config |
| Configuration for the Bollinger Band event horizon detector. More... | |
Public Member Functions | |
| PriceEventHorizon (Config config=Config{}) noexcept | |
| std::optional< HawkingTemperature > | update (double close) noexcept |
| void | reset () noexcept |
| Reset the internal rolling state (e.g. at session boundaries). | |
| std::size_t | window_fill () const noexcept |
| Return current window fill level (0 → full). | |
Detects when a price series approaches its "event horizon" — the Bollinger Band boundary at which the current trend cannot continue.
Usage:
Definition at line 153 of file hawking.hpp.
Definition at line 82 of file hawking.cpp.
|
noexcept |
Reset the internal rolling state (e.g. at session boundaries).
Definition at line 88 of file hawking.cpp.
|
noexcept |
Update state with a new closing price and compute T_H.
| close | Closing price of the current bar. |
bb_window bars have been seen). Definition at line 96 of file hawking.cpp.
|
inlinenoexcept |
Return current window fill level (0 → full).
Definition at line 184 of file hawking.hpp.