Merge commit 'c5400b6c37c7de64a86c9db39a4d0fa9169b35f6' into feature/objectify

This commit is contained in:
Gerald Lonlas
2018-03-03 10:01:06 +08:00
3 changed files with 20 additions and 19 deletions

View File

@@ -440,7 +440,7 @@ class Hyperopt(Backtesting):
total_profit = results.profit_percent.sum()
trade_count = len(results.index)
trade_duration = results.duration.mean() * 5
trade_duration = results.duration.mean()
if trade_count == 0 or trade_duration > self.max_accepted_trade_duration:
print('.', end='')