Add sample loss and improve docstring

This commit is contained in:
Matthias
2019-07-17 06:32:24 +02:00
parent c5b244419d
commit 0e500de1a0
3 changed files with 3 additions and 16 deletions

View File

@@ -186,6 +186,7 @@ class SuperDuperHyperOptLoss(IHyperOptLoss):
Weights are distributed as follows:
* 0.4 to trade duration
* 0.25: Avoiding trade loss
* 1.0 to total profit, compared to the expected value (`EXPECTED_MAX_PROFIT`) defined above
"""
total_profit = results.profit_percent.sum()
trade_duration = results.trade_duration.mean()