Skip to content

StrategyExpConfig


dataclass backtide.backtest.StrategyExpConfig

Strategy settings for an experiment.

Strategies are stored by name. Each name refers to a pickled strategy object saved in the local strategies directory.

Attributes

benchmark : str | None, default=None

Benchmark identifier. If it matches the name of one of the selected strategies it is treated as a strategy benchmark; otherwise it is assumed to be a ticker symbol and a passive Buy & Hold strategy is injected automatically. If None, no benchmark is used.

strategies : list[str], default=[]
Names of the strategies to use in this experiment. Each name must match a stored strategy.


See Also

ExperimentConfig

Complete configuration for a single backtest experiment.

IndicatorExpConfig

Indicator settings for an experiment.

PortfolioExpConfig

Portfolio settings for an experiment.


Methods

to_dict Convert to a dictionary.


method backtide.backtestto_dict()

Convert to a dictionary.

Returns

dict

Self as dict.