Fix gone-wrong hyperopt fix

closes #10192
This commit is contained in:
Matthias 2024-05-25 11:52:41 +02:00
parent 2c740059d7
commit dc92787f1d

View File

@ -32,4 +32,6 @@ class ProfitDrawDownHyperOptLoss(IHyperOptLoss):
except ValueError: except ValueError:
relative_account_drawdown = 0 relative_account_drawdown = 0
return -1 * (total_profit - (relative_account_drawdown * total_profit) / DRAWDOWN_MULT) return -1 * (
total_profit - (relative_account_drawdown * total_profit) * (1 - DRAWDOWN_MULT)
)