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

44
config.json.bak Normal file
View File

@ -0,0 +1,44 @@
{
"max_open_trades": 3,
"stake_currency": "BTC",
"stake_amount": 0.005,
"fiat_display_currency": "USD",
"dry_run": true,
"unfilledtimeout": 600,
"bid_strategy": {
"ask_last_balance": 0.0
},
"exchange": {
"name": "bittrex",
"key": "",
"secret": "",
"pair_whitelist": [
"BTC_ETH",
"BTC_LTC",
"BTC_ETC",
"BTC_DASH",
"BTC_ZEC",
"BTC_XLM",
"BTC_NXT",
"BTC_POWR",
"BTC_ADA",
"BTC_XMR"
],
"pair_blacklist": [
"BTC_DOGE"
]
},
"experimental": {
"use_sell_signal": false,
"sell_profit_only": false
},
"telegram": {
"enabled": true,
"token": "387056091:AAEVz29u5KwphICqGB6c63RwZjqCd7Kh6T4",
"chat_id": "391939601"
},
"initial_state": "running",
"internals": {
"process_throttle_secs": 5
}
}

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)