From 482d0636389f8b40b2bb05d7a30cef0be2c895ef Mon Sep 17 00:00:00 2001 From: xmatthias Date: Sun, 3 Jun 2018 19:41:34 +0200 Subject: [PATCH] update documentation for --export-filename --- docs/backtesting.md | 6 ++++++ docs/bot-usage.md | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/docs/backtesting.md b/docs/backtesting.md index 8c4c4180d..0b53d45b7 100644 --- a/docs/backtesting.md +++ b/docs/backtesting.md @@ -62,6 +62,12 @@ Where `-s TestStrategy` refers to the class name within the strategy file `test_ python3 ./freqtrade/main.py backtesting --export trades ``` +**Exporting trades to file specifying a custom filename** +```bash +python3 ./freqtrade/main.py backtesting --export trades --export-filename=backtest_teststrategy.json +``` + + **Running backtest with smaller testset** Use the `--timerange` argument to change how much of the testset you want to use. The last N ticks/timeframes will be used. diff --git a/docs/bot-usage.md b/docs/bot-usage.md index e2c18473c..cfffd04e9 100644 --- a/docs/bot-usage.md +++ b/docs/bot-usage.md @@ -120,6 +120,8 @@ Backtesting also uses the config specified via `-c/--config`. ``` usage: main.py backtesting [-h] [-i TICKER_INTERVAL] [--realistic-simulation] [--timerange TIMERANGE] [-l] [-r] [--export EXPORT] + [--export-filename EXPORTFILENAME] + optional arguments: -h, --help show this help message and exit @@ -137,6 +139,11 @@ optional arguments: run your backtesting with up-to-date data. --export EXPORT export backtest results, argument are: trades Example --export=trades + --export-filename EXPORTFILENAME + Save backtest results to this filename requires + --export to be set as well Example --export- + filename=backtest_today.json (default: backtest- + result.json ``` ### How to use --refresh-pairs-cached parameter?