Fix wrong realistic_simulation implementation in Hyperopt

This commit is contained in:
Gerald Lonlas
2018-03-04 02:25:40 -08:00
parent 6f3949bb6d
commit de468c6fc8
3 changed files with 45 additions and 2 deletions

View File

@@ -274,7 +274,6 @@ def setup_configuration(args) -> Dict[str, Any]:
:return: Configuration
"""
configuration = Configuration(args)
config = configuration.get_config()
# Ensure we do not use Exchange credentials

View File

@@ -447,7 +447,7 @@ class Hyperopt(Backtesting):
{
'stake_amount': self.config['stake_amount'],
'processed': self.processed,
'realistic': params['realistic_simulation'],
'realistic': self.config.get('realistic_simulation', False),
}
)
result_explanation = self.format_results(results)