From d9f6f0847da7d6caa98f83812d6883f7f83ac41e Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 15 Aug 2024 06:50:04 +0200 Subject: [PATCH] docs: improve readability of hyperopt-loss sample --- docs/advanced-hyperopt.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/advanced-hyperopt.md b/docs/advanced-hyperopt.md index eb8bf3f84..e276bed94 100644 --- a/docs/advanced-hyperopt.md +++ b/docs/advanced-hyperopt.md @@ -30,11 +30,17 @@ class SuperDuperHyperOptLoss(IHyperOptLoss): """ @staticmethod - def hyperopt_loss_function(results: DataFrame, trade_count: int, - min_date: datetime, max_date: datetime, - config: Config, processed: Dict[str, DataFrame], - backtest_stats: Dict[str, Any], - *args, **kwargs) -> float: + def hyperopt_loss_function( + *, + results: DataFrame, + trade_count: int, + min_date: datetime, + max_date: datetime, + config: Config, + processed: Dict[str, DataFrame], + backtest_stats: Dict[str, Any], + **kwargs, + ) -> float: """ Objective function, returns smaller number for better results This is the legacy algorithm (used until now in freqtrade).