From 5b001eec3e609699b1ec70a16537995d65eeccf5 Mon Sep 17 00:00:00 2001 From: Achmad Fathoni Date: Sun, 18 May 2025 21:24:05 +0700 Subject: [PATCH] docs: trades space not included in default spaces --- docs/hyperopt.md | 2 +- freqtrade/optimize/hyperopt_tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hyperopt.md b/docs/hyperopt.md index 3a8100972..bf953dcaa 100644 --- a/docs/hyperopt.md +++ b/docs/hyperopt.md @@ -532,7 +532,7 @@ Legal values are: * `trailing`: search for the best trailing stop values * `trades`: search for the best max open trades values * `protection`: search for the best protection parameters (read the [protections section](#optimizing-protections) on how to properly define these) -* `default`: `all` except `trailing` and `protection` +* `default`: `all` except `trailing`, `trades` and `protection` * space-separated list of any of the above values for example `--spaces roi stoploss` The default Hyperopt Search Space, used when no `--space` command line option is specified, does not include the `trailing` hyperspace. We recommend you to run optimization for the `trailing` hyperspace separately, when the best parameters for other hyperspaces were found, validated and pasted into your custom strategy. diff --git a/freqtrade/optimize/hyperopt_tools.py b/freqtrade/optimize/hyperopt_tools.py index ff4747781..4c72fbd78 100644 --- a/freqtrade/optimize/hyperopt_tools.py +++ b/freqtrade/optimize/hyperopt_tools.py @@ -107,7 +107,7 @@ class HyperoptTools: """ Tell if the space value is contained in the configuration """ - # 'trailing' and 'protection spaces are not included in the 'default' set of spaces + # 'trailing', 'protection' & 'trades' spaces are not included in the 'default' set of spaces if space in ("trailing", "protection", "trades"): return any(s in config["spaces"] for s in [space, "all"]) else: