|
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
|
fastmm::cli::backtest: the fastmm-backtest command line as a library function (fastmm::backtest). More...
Go to the source code of this file.
Namespaces | |
| namespace | fastmm |
| namespace | fastmm::cli |
Functions | |
| int | fastmm::cli::backtest (int argc, char **argv, std::span< const StrategyModule > modules) |
| int | fastmm::cli::backtest (int argc, char **argv, std::initializer_list< StrategyModule > modules={}) |
fastmm::cli::backtest: the fastmm-backtest command line as a library function (fastmm::backtest).
#include "fastmm/cli/backtest.hpp" #include "mm/strategies.hpp" int main(int argc, char** argv) { return fastmm::cli::backtest(argc, argv, {mm::register_strategies}); }
The built-in strategies are always registered, then every module in order; a strategy name registered by different code exits with code 3. Usage and error messages are prefixed with the program name. Run --help for the flags and exit codes.