Fix missing column to load current backtesting export files
This commit is contained in:
		| @@ -73,7 +73,7 @@ def load_trades(args: Namespace, pair: str, timerange: TimeRange) -> pd.DataFram | |||||||
|         file = Path(args.exportfilename) |         file = Path(args.exportfilename) | ||||||
|         # must align with columns in backtest.py |         # must align with columns in backtest.py | ||||||
|         columns = ["pair", "profit", "opents", "closets", "index", "duration", |         columns = ["pair", "profit", "opents", "closets", "index", "duration", | ||||||
|                    "open_rate", "close_rate", "open_at_end"] |                    "open_rate", "close_rate", "open_at_end", "sell_reason"] | ||||||
|         with file.open() as f: |         with file.open() as f: | ||||||
|             data = json.load(f) |             data = json.load(f) | ||||||
|             trades = pd.DataFrame(data, columns=columns) |             trades = pd.DataFrame(data, columns=columns) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user