FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
replay.hpp File Reference

fastmm::cli::replay: the fastmm-replay command line as a library function (fastmm::backtest). More...

#include "fastmm/strategies/module.hpp"
#include <initializer_list>
#include <span>

Go to the source code of this file.

Namespaces

namespace  fastmm
 
namespace  fastmm::cli
 

Functions

int fastmm::cli::replay (int argc, char **argv, std::span< const StrategyModule > modules)
 
int fastmm::cli::replay (int argc, char **argv, std::initializer_list< StrategyModule > modules={})
 

Detailed Description

fastmm::cli::replay: the fastmm-replay command line as a library function (fastmm::backtest).

#include "fastmm/cli/replay.hpp" #include "mm/strategies.hpp" int main(int argc, char** argv) { return fastmm::cli::replay(argc, argv, {mm::register_strategies}); }

A journal recorded by a custom app replays with an app that registers the same modules. The built-in strategies are always registered, then every module in order; a strategy name registered by different code exits with code 3. Run --help for the flags and exit codes.