From 88b96d5d1b1aea451331bd92a664e7a92b00dfed Mon Sep 17 00:00:00 2001 From: Robert Roman Date: Mon, 25 Oct 2021 00:45:10 -0500 Subject: [PATCH] Update hyperopt_loss_calmar.py --- freqtrade/optimize/hyperopt_loss_calmar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/hyperopt_loss_calmar.py b/freqtrade/optimize/hyperopt_loss_calmar.py index 802aa949b..ace08794a 100644 --- a/freqtrade/optimize/hyperopt_loss_calmar.py +++ b/freqtrade/optimize/hyperopt_loss_calmar.py @@ -54,7 +54,7 @@ class CalmarHyperOptLoss(IHyperOptLoss): except ValueError: max_drawdown = 0 - if max_drawdown != 0 and trade_count > 2000: + if max_drawdown != 0: calmar_ratio = expected_returns_mean / max_drawdown * msqrt(365) else: # Define high (negative) calmar ratio to be clear that this is NOT optimal.