mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-17 21:31:14 +00:00
feat: improve code for list-strategies
This commit is contained in:
@@ -120,12 +120,13 @@ def _print_objs_tabular(objs: list, print_colorized: bool) -> None:
|
|||||||
for space, params in s["hyperoptable"].items()
|
for space, params in s["hyperoptable"].items()
|
||||||
if space not in ["buy", "sell", "protection"]
|
if space not in ["buy", "sell", "protection"]
|
||||||
]
|
]
|
||||||
|
hyp = s["hyperoptable"]
|
||||||
objs_to_print[idx].update(
|
objs_to_print[idx].update(
|
||||||
{
|
{
|
||||||
"hyperoptable": "Yes" if len(s["hyperoptable"]) > 0 else "No",
|
"hyperoptable": "Yes" if len(hyp) > 0 else "No",
|
||||||
"buy-Params": str(len(s["hyperoptable"].get("buy", []))),
|
"buy-Params": str(len(hyp.get("buy", []))),
|
||||||
"sell-Params": str(len(s["hyperoptable"].get("sell", []))),
|
"sell-Params": str(len(hyp.get("sell", []))),
|
||||||
"protection-Params": str(len(s["hyperoptable"].get("protection", []))),
|
"protection-Params": str(len(hyp.get("protection", []))),
|
||||||
"custom-Params": ", ".join(custom_params) if custom_params else "",
|
"custom-Params": ", ".join(custom_params) if custom_params else "",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user