updated line 42

I removed the minus sign on max drawdown.
This commit is contained in:
Robert Roman
2021-09-21 20:25:17 -05:00
committed by GitHub
parent 3845d55186
commit 3834bb86ff

View File

@@ -39,7 +39,7 @@ class CalmarHyperOptLoss(IHyperOptLoss):
# calculate max drawdown
try:
_, _, _, high_val, low_val = calculate_max_drawdown(results)
max_drawdown = -(high_val - low_val) / high_val
max_drawdown = (high_val - low_val) / high_val
except ValueError:
max_drawdown = 0