mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
feat: improve output wording
This commit is contained in:
@@ -223,8 +223,9 @@ class HyperoptTools:
|
||||
spaces = ["buy", "sell", "protection", "roi", "stoploss", "trailing", "max_open_trades"]
|
||||
spaces += [s for s in all_spaces if s not in spaces]
|
||||
for space in spaces:
|
||||
name = space.capitalize() if space != "roi" else space.upper()
|
||||
HyperoptTools._params_pretty_print(
|
||||
params, space, f"{space.capitalize()} hyperspace params:", non_optimized
|
||||
params, space, f"{name} parameters:", non_optimized
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -1319,10 +1319,10 @@ def test_hyperopt_list(mocker, capsys, caplog, tmp_path):
|
||||
" 2/12",
|
||||
" 10/12",
|
||||
"Best result:",
|
||||
"Buy hyperspace params",
|
||||
"Sell hyperspace params",
|
||||
"ROI table",
|
||||
"Stoploss",
|
||||
"Buy parameters",
|
||||
"Sell parameters",
|
||||
"ROI parameters",
|
||||
"Stoploss parameters",
|
||||
]
|
||||
)
|
||||
assert all(
|
||||
|
||||
Reference in New Issue
Block a user