From 4bce64b4271803429f31d03d5bdbe4502b1203e0 Mon Sep 17 00:00:00 2001 From: zx <54022220+ediziks@users.noreply.github.com> Date: Mon, 7 Feb 2022 14:12:07 +0100 Subject: [PATCH] commented method deletition --- freqtrade/optimize/hyperopt_loss_profit_drawdown.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/optimize/hyperopt_loss_profit_drawdown.py b/freqtrade/optimize/hyperopt_loss_profit_drawdown.py index 90240e80f..5bd12ff52 100644 --- a/freqtrade/optimize/hyperopt_loss_profit_drawdown.py +++ b/freqtrade/optimize/hyperopt_loss_profit_drawdown.py @@ -23,8 +23,7 @@ class ProfitDrawDownHyperOptLoss(IHyperOptLoss): total_profit = results["profit_abs"].sum() try: - _, _, _, _, _, max_drawdown_abs = calculate_max_drawdown(results, value_col="profit_abs") - # max_drawdown_abs = calculate_max_drawdown(results, value_col="profit_abs")[5] + max_drawdown_abs = calculate_max_drawdown(results, value_col="profit_abs")[5] except ValueError: max_drawdown_abs = 0