Backtester#

class swordfish.plugins.backtest.Backtester(strategy_cls, config)#
Parameters:
final append_data(data)#

Insert market data to execute the backtesting strategy.

Parameters:

data (_type_) – A table containing market data.

final append_end()#

Insert end marker to indicate the end of market data.

property context_dict#

Return the logical context.

property universe#

Set the symbol pool for the engine.

property config: Dictionary#

Return the backtest configuration.