Fix wrong realistic_simulation implementation in Hyperopt
This commit is contained in:
@@ -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
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user