Merge pull request #1882 from freqtrade/fix/plot_script
Update plot-script to work with exported trades
This commit is contained in:
commit
73f1d9bb66
@ -74,7 +74,7 @@ def load_trades(args: Namespace, pair: str, timerange: TimeRange) -> pd.DataFram
|
|||||||
|
|
||||||
file = Path(args.exportfilename)
|
file = Path(args.exportfilename)
|
||||||
if file.exists():
|
if file.exists():
|
||||||
load_backtest_data(file)
|
trades = load_backtest_data(file)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
trades = pd.DataFrame([], columns=BT_DATA_COLUMNS)
|
trades = pd.DataFrame([], columns=BT_DATA_COLUMNS)
|
||||||
|
Loading…
Reference in New Issue
Block a user