setup_backtest_for_universe(strategy_path, start_at, end_at, cycle_duration, initial_deposit, universe, routing_model, max_slippage=0.01, validate_strategy_module=False, candle_time_frame=None)[source]#

High-level entry point for setting up a single backtest for a predefined universe.

The trading universe creation from the strategy is skipped, instead of you can pass your own universe e.g. synthetic universe. This is useful for running backtests against synthetic universes.