From 1da008b3aff2d498044e92bf0b50e612a18eb416 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 5 Dec 2019 20:44:12 +0100 Subject: [PATCH 1/2] Document "quick" hyperopt of roi/stoploss and trailing stoploss --- docs/hyperopt.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/hyperopt.md b/docs/hyperopt.md index 0661896a0..befd448bb 100644 --- a/docs/hyperopt.md +++ b/docs/hyperopt.md @@ -50,6 +50,16 @@ Rarely you may also need to override: * `stoploss_space` - for custom stoploss optimization (if you need the range for the stoploss parameter in the optimization hyperspace that differs from default) * `trailing_space` - for custom trailing stop optimization (if you need the ranges for the trailing stop parameters in the optimization hyperspace that differ from default) +!!! Tip "Quickly optimize ROI, stoploss and trailing stoploss" + You can quickly optimize the spaces `roi`, `stoploss` and `trailing_stoploss` without changing anything from the default hyperopt template by relying on your strategy to do most of the calculations. + + ``` python + # Have a working strategy at hand. + freqtrade new-hyperopt --hyperopt EmptyHyperopt + + freqtrade hyperopt --hyperopt EmptyHyperopt --spaces roi stoploss trailing --strategy MyWorkingStrategy --config config.json -e 100 + ``` + ### 1. Install a Custom Hyperopt File Put your hyperopt file into the directory `user_data/hyperopts`. From 2bd4008cb2739f6c2cf47698e21e1529c4c77c73 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 6 Dec 2019 06:06:41 +0100 Subject: [PATCH 2/2] fix space name ... --- docs/hyperopt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hyperopt.md b/docs/hyperopt.md index befd448bb..e0adfb890 100644 --- a/docs/hyperopt.md +++ b/docs/hyperopt.md @@ -51,7 +51,7 @@ Rarely you may also need to override: * `trailing_space` - for custom trailing stop optimization (if you need the ranges for the trailing stop parameters in the optimization hyperspace that differ from default) !!! Tip "Quickly optimize ROI, stoploss and trailing stoploss" - You can quickly optimize the spaces `roi`, `stoploss` and `trailing_stoploss` without changing anything from the default hyperopt template by relying on your strategy to do most of the calculations. + You can quickly optimize the spaces `roi`, `stoploss` and `trailing` without changing anything (i.e. without creation of a "complete" Hyperopt class with dimensions, parameters, triggers and guards, as described in this document) from the default hyperopt template by relying on your strategy to do most of the calculations. ``` python # Have a working strategy at hand.