Backtester#

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

Insert market data to execute the backtesting strategy.

参数:

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.