chore: improve help wording

This commit is contained in:
Matthias
2025-11-05 20:53:12 +01:00
parent f214942ff1
commit 68dea691c2
4 changed files with 17 additions and 10 deletions

View File

@@ -55,10 +55,11 @@ options:
-e INT, --epochs INT Specify number of epochs (default: 100).
--spaces SPACES [SPACES ...]
Specify which parameters to hyperopt. Space-separated
list. Available options: all, buy, sell, roi,
stoploss, trailing, protection, trades, default.
Default: `default` - which includes all spaces except
for 'trailing', 'protection', and 'trades'.
list. Available builtin options (custom spaces will
not be listed here): default, all, buy, sell, roi,
stoploss, trailing, protection, trades. Default:
`default` - which includes all spaces except for
'trailing', 'protection', and 'trades'.
--print-all Print all results, not only the best ones.
--print-json Print output in JSON format.
-j JOBS, --job-workers JOBS

View File

@@ -5,7 +5,10 @@ Definition of cli arguments used in arguments.py
from argparse import ArgumentTypeError
from freqtrade import constants
from freqtrade.constants import HYPEROPT_BUILTIN_SPACES, HYPEROPT_LOSS_BUILTIN
from freqtrade.constants import (
HYPEROPT_BUILTIN_SPACE_OPTIONS,
HYPEROPT_LOSS_BUILTIN,
)
from freqtrade.enums import CandleType
@@ -278,9 +281,12 @@ AVAILABLE_CLI_OPTIONS = {
),
"spaces": Arg(
"--spaces",
help="Specify which parameters to hyperopt. Space-separated list. Available options: "
f"{', '.join(HYPEROPT_BUILTIN_SPACES)}. Default: `default` - "
"which includes all spaces except for 'trailing', 'protection', and 'trades'.",
help=(
"Specify which parameters to hyperopt. Space-separated list. "
"Available builtin options (custom spaces will not be listed here): "
f"{', '.join(HYPEROPT_BUILTIN_SPACE_OPTIONS)}. Default: `default` - "
"which includes all spaces except for 'trailing', 'protection', and 'trades'."
),
nargs="+",
),
"analyze_per_epoch": Arg(

View File

@@ -42,7 +42,6 @@ HYPEROPT_LOSS_BUILTIN = [
"MultiMetricHyperOptLoss",
]
HYPEROPT_BUILTIN_SPACES = [
"all",
"buy",
"sell",
"roi",
@@ -50,8 +49,8 @@ HYPEROPT_BUILTIN_SPACES = [
"trailing",
"protection",
"trades",
"default",
]
HYPEROPT_BUILTIN_SPACE_OPTIONS = ["default", "all"] + HYPEROPT_BUILTIN_SPACES
AVAILABLE_PAIRLISTS = [
"StaticPairList",

View File

@@ -220,6 +220,7 @@ class HyperoptTools:
else:
all_spaces = list(params.keys() | non_optimized.keys())
# Explicitly listed to keep original sort order
spaces = ["buy", "sell", "protection", "roi", "stoploss", "trailing", "max_open_trades"]
spaces += [s for s in all_spaces if s not in spaces]
lookup = {