Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 727 Bytes

backtesting.md

File metadata and controls

29 lines (20 loc) · 727 Bytes

Backtesting

Passivbot includes a backtester which will simulate the bot's behavior on past price data. Historical 1m candlestick data is automatically downloaded and cached for all coins.

Usage

python3 src/backtest.py

Or

python3 src/backtest.py path/to/config.json

If no config is specified, it will default to configs/template.json

Backtest Results

Metrics and plots are dumped to backtests/{exchange}/.

Backtest CLI args

  • -dp to disable individual coin plotting.
  • -co to combine the ohlcv data from multiple exchanges into a single array. Otherwise, backtest for each exchange individually.

For a comprehensive list of CLI args:

python3 src/backtest.py -h