@@ -1554,7 +1554,7 @@ def _mp_task(backtest_uuid, batch_index):
15541554
15551555 def plot (self , * , results : pd .Series = None , filename = None , plot_width = None ,
15561556 plot_equity = True , plot_return = False , plot_pl = True ,
1557- plot_volume = True , plot_drawdown = False ,
1557+ plot_volume = True , plot_drawdown = False , plot_trades = True ,
15581558 smooth_equity = False , relative_equity = True ,
15591559 superimpose : Union [bool , str ] = True ,
15601560 resample = True , reverse_indicators = False ,
@@ -1593,6 +1593,9 @@ def plot(self, *, results: pd.Series = None, filename=None, plot_width=None,
15931593 If `plot_drawdown` is `True`, the resulting plot will contain
15941594 a separate drawdown graph section.
15951595
1596+ If `plot_trades` is `True`, the stretches between trade entries
1597+ and trade exits are marked by hash-marked tractor beams.
1598+
15961599 If `smooth_equity` is `True`, the equity graph will be
15971600 interpolated between fixed points at trade closing times,
15981601 unaffected by any interim asset volatility.
@@ -1651,6 +1654,7 @@ def plot(self, *, results: pd.Series = None, filename=None, plot_width=None,
16511654 plot_pl = plot_pl ,
16521655 plot_volume = plot_volume ,
16531656 plot_drawdown = plot_drawdown ,
1657+ plot_trades = plot_trades ,
16541658 smooth_equity = smooth_equity ,
16551659 relative_equity = relative_equity ,
16561660 superimpose = superimpose ,
0 commit comments