Fix small bug when using max-open-trades -1 in backtesting

This commit is contained in:
Matthias 2020-08-23 09:00:57 +02:00
parent 637147f89c
commit d8a6410fd1

View File

@ -273,7 +273,8 @@ def generate_backtest_stats(config: Dict, btdata: Dict[str, DataFrame],
'pairlist': list(btdata.keys()),
'stake_amount': config['stake_amount'],
'stake_currency': config['stake_currency'],
'max_open_trades': config['max_open_trades'],
'max_open_trades': (config['max_open_trades']
if config['max_open_trades'] != float('inf') else -1),
'timeframe': config['timeframe'],
**daily_stats,
}