mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
max_drawdown_abs calc fix & .DS_Store deletition
This commit is contained in:
parent
8cdb6e0774
commit
7811a36ae9
|
@ -23,7 +23,8 @@ class ProfitDrawDownHyperOptLoss(IHyperOptLoss):
|
|||
total_profit = results["profit_abs"].sum()
|
||||
|
||||
try:
|
||||
max_drawdown_abs, _, _, _, _ = calculate_max_drawdown(results, value_col="profit_abs")
|
||||
_, _, _, _, _, max_drawdown_abs = calculate_max_drawdown(results, value_col="profit_abs")
|
||||
# max_drawdown_abs = calculate_max_drawdown(results, value_col="profit_abs")[5]
|
||||
except ValueError:
|
||||
max_drawdown_abs = 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user