Fix missing column to load current backtesting export files
This commit is contained in:
parent
eebaede80d
commit
14e21765f2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user