mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33: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
|
# calculate max drawdown
|
||||||
try:
|
try:
|
||||||
_, _, _, high_val, low_val = calculate_max_drawdown(results)
|
_, _, _, 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:
|
except ValueError:
|
||||||
max_drawdown = 0
|
max_drawdown = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user