From 7811a36ae91f564287b5dade852a599e2a6b103b Mon Sep 17 00:00:00 2001 From: zx <54022220+ediziks@users.noreply.github.com> Date: Mon, 7 Feb 2022 07:44:13 +0100 Subject: [PATCH] max_drawdown_abs calc fix & .DS_Store deletition --- .DS_Store | Bin 10244 -> 0 bytes .../optimize/hyperopt_loss_profit_drawdown.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index a67fb52e74d3dc023db3b44f1beea46a3926f230..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10244 zcmeHM&1w`u5Uz=3)!mtN_0CQ<2SKF8*@Z45sjj; zJb4_if``Ys^*tl5=O$zXd!iM}XoI$Bnb!NXwL=+D29yD1Kp9X5{sso{o6XPYxRv@= z29yD1AZLKjhZv1z;$+WCb9CTkN&v_Ty3K>nr~`~m>}29(&q`y8Ic@b2In&6M7?Cx{ zc+BdMiIY7mtvN;3oFeBraurHsyu&Uw>J%kb>RTC52KpJ`+I@m%s6i?1i28j4J)5oO z+`>xM?pVX>yK?PzR;$%pSshx~j=izn&+l&^WYIXJMQ6=N6k~dvAT!j&jl-6Ywleu( z${+Kw{kY$Hbn=VAmfNC@Ur zGFZ#UL-dC6@H%$r8SYf*hK^;||t3^6_CHIV4XzlGxxYtFftLn15IDZo*2I3$B-o?ifle9ZUX zdiC*oe%{y^y1wtCapCuDf~jeYR*`!tJ;C1I#7c&Hyr z1vJ}+hd?91KAE5UeAeaj1Skh+NjwRh(b4?GmsobISLJAcW6I^EXCGiF&=CG#FR}kI zoRVGMlQ?4<$V=S+%T>PgwOA{_bKc=8m@mLpqABpX;({)5dVQ0)C?QQ-a|1-edA;_vi>wijpMzsFt`wCf4ntRrux|g-?zf%AI E2BFcLxBvhE diff --git a/freqtrade/optimize/hyperopt_loss_profit_drawdown.py b/freqtrade/optimize/hyperopt_loss_profit_drawdown.py index 2bba58333..90240e80f 100644 --- a/freqtrade/optimize/hyperopt_loss_profit_drawdown.py +++ b/freqtrade/optimize/hyperopt_loss_profit_drawdown.py @@ -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