From 607c895065a2b0f2860cab5a96a99c30b5ba6890 Mon Sep 17 00:00:00 2001 From: creslin <34645187+creslinux@users.noreply.github.com> Date: Sat, 26 May 2018 20:09:20 +0300 Subject: [PATCH 1/2] Update backtesting.md: how to call a custom strat Corrected instructions, to paraphrase the PR prior - to call a custom strategy -s the custom strategy file name in user_data/strategies after - to call a custom strategy -s the class name within the custom strategy file name in user_data/strategies --- docs/backtesting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/backtesting.md b/docs/backtesting.md index b3783a665..9a0bb6d5c 100644 --- a/docs/backtesting.md +++ b/docs/backtesting.md @@ -53,9 +53,9 @@ python3 ./freqtrade/main.py backtesting --datadir freqtrade/tests/testdata-20180 **With a (custom) strategy file** ```bash -python3 ./freqtrade/main.py -s currentstrategy backtesting +python3 ./freqtrade/main.py -s TestStrategy backtesting ``` -Where `-s currentstrategy` refers to a filename `currentstrategy.py` in `freqtrade/user_data/strategies` +Where `-s TestStrategy` refers to the class name within the stratgey file `test_strategy.py` found in the `freqtrade/user_data/strategies` directory **Exporting trades to file** ```bash From 280e8b32089ad03f3c9d6d3396a7a7ea7b75b69e Mon Sep 17 00:00:00 2001 From: creslin <34645187+creslinux@users.noreply.github.com> Date: Sat, 26 May 2018 20:14:33 +0300 Subject: [PATCH 2/2] Update backtesting.md - correct instructions Correct instructions for calling a custom strategy file To paraphrase the change: Prior - to call a custom strategy -s the strategy file name within users_data/strategies/ directory After - to call a custom strategy -s the class name within the strategy within users_data/strategies/ directory --- docs/backtesting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/backtesting.md b/docs/backtesting.md index 9a0bb6d5c..df105bd77 100644 --- a/docs/backtesting.md +++ b/docs/backtesting.md @@ -55,7 +55,7 @@ python3 ./freqtrade/main.py backtesting --datadir freqtrade/tests/testdata-20180 ```bash python3 ./freqtrade/main.py -s TestStrategy backtesting ``` -Where `-s TestStrategy` refers to the class name within the stratgey file `test_strategy.py` found in the `freqtrade/user_data/strategies` directory +Where `-s TestStrategy` refers to the class name within the strategy file `test_strategy.py` found in the `freqtrade/user_data/strategies` directory **Exporting trades to file** ```bash