Merge pull request #825 from gcarq/fix/hyperopt-in-progress

Fix the in-progress dot that does not show up during a Hyperopt run
This commit is contained in:
Janne Sinivirta 2018-06-03 07:16:39 +03:00 committed by GitHub
commit 2cd8782a88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -455,6 +455,7 @@ class Hyperopt(Backtesting):
if trade_count == 0 or trade_duration > self.max_accepted_trade_duration:
print('.', end='')
sys.stdout.flush()
return {
'status': STATUS_FAIL,
'loss': float('inf')