// 2. Then create the backtester letbacktester = newBacktestBalancer(ops) ;
// 3. Then run the backtest awaitbacktester.backtest() ;
// 4. Then extract the backtest metrics and use them in a graph, analysis, etc... let { hodl_porfolio_series, balance_portfolio_series, rebalances } = backtester ;
Class for running a backtest. See below for usage example.
Example