mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
parent
2c740059d7
commit
dc92787f1d
|
@ -32,4 +32,6 @@ class ProfitDrawDownHyperOptLoss(IHyperOptLoss):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
relative_account_drawdown = 0
|
relative_account_drawdown = 0
|
||||||
|
|
||||||
return -1 * (total_profit - (relative_account_drawdown * total_profit) / DRAWDOWN_MULT)
|
return -1 * (
|
||||||
|
total_profit - (relative_account_drawdown * total_profit) * (1 - DRAWDOWN_MULT)
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user