backtest#

API documentation for tradeexecutor.cli.commands.backtest Python module in Trading Strategy.

Module description#

backtest CLI command

To read generated cprofile reports:

import pstats
p = pstats.Stats('backtest.cprof')
p.strip_dirs().sort_stats('cumulative').print_stats(10)

Functions#

backtest([id, name, strategy_file, ...])

Backtest a given strategy module.