diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index a67fb52e7..000000000 Binary files a/.DS_Store and /dev/null differ diff --git a/freqtrade/optimize/hyperopt_loss_profit_drawdown.py b/freqtrade/optimize/hyperopt_loss_profit_drawdown.py index 2bba58333..90240e80f 100644 --- a/freqtrade/optimize/hyperopt_loss_profit_drawdown.py +++ b/freqtrade/optimize/hyperopt_loss_profit_drawdown.py @@ -23,7 +23,8 @@ 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") + # max_drawdown_abs = calculate_max_drawdown(results, value_col="profit_abs")[5] except ValueError: max_drawdown_abs = 0