mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-04 21:30:24 +00:00
Merge pull request #11766 from AchmadFathoni/develop
docs: trades space not included in default spaces
This commit is contained in:
@@ -532,7 +532,7 @@ Legal values are:
|
|||||||
* `trailing`: search for the best trailing stop values
|
* `trailing`: search for the best trailing stop values
|
||||||
* `trades`: search for the best max open trades 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)
|
* `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`
|
* 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.
|
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.
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ class HyperoptTools:
|
|||||||
"""
|
"""
|
||||||
Tell if the space value is contained in the configuration
|
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"):
|
if space in ("trailing", "protection", "trades"):
|
||||||
return any(s in config["spaces"] for s in [space, "all"])
|
return any(s in config["spaces"] for s in [space, "all"])
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user