From 933054a51ccb991a646452e2e26f2ea7cad37229 Mon Sep 17 00:00:00 2001 From: froggleston Date: Wed, 20 Apr 2022 13:54:50 +0100 Subject: [PATCH] Move enable option text to make better sense --- docs/advanced-backtesting.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/advanced-backtesting.md b/docs/advanced-backtesting.md index d8c6c505e..4d91c4305 100644 --- a/docs/advanced-backtesting.md +++ b/docs/advanced-backtesting.md @@ -10,7 +10,15 @@ determine indicator values on the signal candle that resulted in a trade opening !!! Note The following buy reason analysis is only available for backtesting, *not hyperopt*. -We first need to enable the exporting of trades from backtesting: +We first need to tell freqtrade to export the signal candles for each opened trade, +so add the following option to your config file: + +``` +'backtest_signal_candle_export_enable': true, +``` + +We then need to run backtesting and include the `--export` option to enable the exporting of +trades: ```bash freqtrade backtesting -c --timeframe --strategy --timerange= --export=trades @@ -20,13 +28,6 @@ To analyse the buy tags, we need to use the `buy_reasons.py` script from [froggleston's repo](https://github.com/froggleston/freqtrade-buyreasons). Follow the instructions in their README to copy the script into your `freqtrade/scripts/` folder. -We then need the signal candles for each opened trade so add the following option to your -config file: - -``` -'backtest_signal_candle_export_enable': true, -``` - This will tell freqtrade to output a pickled dictionary of strategy, pairs and corresponding DataFrame of the candles that resulted in buy signals. Depending on how many buys your strategy makes, this file may get quite large, so periodically check your `user_data/backtest_results`