From 44f716bab8de7275c66b1fdf3324d7227f4a9d8e Mon Sep 17 00:00:00 2001 From: Alexey Peschany Date: Wed, 14 Jul 2021 19:26:20 +0300 Subject: [PATCH] Return plot --- backtesting/backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backtesting/backtesting.py b/backtesting/backtesting.py index edb7be01..88a543e3 100644 --- a/backtesting/backtesting.py +++ b/backtesting/backtesting.py @@ -1706,7 +1706,7 @@ def plot(self, *, results: pd.Series = None, filename=None, plot_width=None, raise RuntimeError('First issue `backtest.run()` to obtain results.') results = self._results - plot( + return plot( results=results, df=self._data, indicators=results._strategy._indicators,