- Backtest with specified configuration file and strategy, and save the result in user_data/backtest_results.
freqtrade backtesting --strategy SampleStrategy --config config.json
- Specify a 1-minute candlestick chart, if not specified, the default is 5 minutes.
freqtrade backtesting --strategy AwesomeStrategy --timeframe 1m
- Specify another candlestick chart source.
freqtrade backtesting --strategy AwesomeStrategy --datadir user_data/data/bittrex-20180101 --timeframe 1m
freqtrade backtesting --strategy AwesomeStrategy --strategy-path user_data/otherPath
- Compare different strategies.
freqtrade backtesting --strategy-list SampleStrategy1 AwesomeStrategy
- Do not export backtest results.
freqtrade backtesting --strategy backtesting --export none
- Customize the filename of the backtest result.
freqtrade backtesting --strategy backtesting --export trades --export-filename=backtest_samplestrategy.json
- Specify a fee deduction rate.
freqtrade backtesting --fee 0.001
- Customize the data time range for backtesting, all available data after 20190501.
freqtrade backtesting --timerange=20190501-
Represents all available data before 20190501.
freqtrade backtesting --timerange=-20190501
Represents data from 20180131 to 20180301.
freqtrade backtesting --timerange=20180131-20180301
Represented in epoch timestamps.
freqtrade backtesting --timerange=1527595200-1527618600
- Backtest data table analysis:
Closed trades: 19, average profit: 0.3%, cumulative profit: 5.78%, total profit: 18 USDT, total profit rate: 1.86%