Simplify calling backtesting by returning the proper result

This commit is contained in:
Matthias
2021-04-30 07:31:57 +02:00
parent e2e1d34828
commit f2e182002d
4 changed files with 83 additions and 66 deletions

View File

@@ -274,7 +274,7 @@ def generate_strategy_stats(btdata: Dict[str, DataFrame],
"""
results: Dict[str, DataFrame] = content['results']
if not isinstance(results, DataFrame):
return
return {}
config = content['config']
max_open_trades = min(config['max_open_trades'], len(btdata.keys()))
starting_balance = config['dry_run_wallet']