mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
updated line 42
I removed the minus sign on max drawdown.
This commit is contained in:
parent
3845d55186
commit
3834bb86ff
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user