|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
Abstract strategy interface. Subclass and override the virtual methods. More...
#include <event_backtester.hpp>
Public Member Functions | |
| virtual | ~Strategy ()=default |
| virtual void | on_start () |
| Called at the start of the simulation before any events are dispatched. | |
| virtual void | on_end () |
| Called at the end of the simulation after all events are processed. | |
| virtual std::optional< Order > | on_trade (const BacktestEvent &) |
| virtual std::optional< Order > | on_bar (const BacktestEvent &) |
Abstract strategy interface. Subclass and override the virtual methods.
Definition at line 139 of file event_backtester.hpp.
|
virtualdefault |
|
inlinevirtual |
Called for every Bar-type event.
Reimplemented in srfm::event_bt::RelativisticStrategy.
Definition at line 159 of file event_backtester.hpp.
|
inlinevirtual |
Called at the end of the simulation after all events are processed.
Definition at line 147 of file event_backtester.hpp.
|
inlinevirtual |
Called at the start of the simulation before any events are dispatched.
Reimplemented in srfm::event_bt::RelativisticStrategy.
Definition at line 144 of file event_backtester.hpp.
|
inlinevirtual |
Called for every Trade-type event.
Reimplemented in srfm::event_bt::RelativisticStrategy.
Definition at line 152 of file event_backtester.hpp.