Skip to content

Commit

Permalink
Ensure LineSeriesStub has the standard _owner attribute (in addition …
Browse files Browse the repository at this point in the history
…to custom owner)
  • Loading branch information
backtrader committed Oct 11, 2018
1 parent 341485b commit ba73229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backtrader/lineseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ class LineSeriesStub(LineSeries):
def __init__(self, line, slave=False):
self.lines = self.__class__.lines(initlines=[line])
# give a change to find the line owner (for plotting at least)
self.owner = line._owner
self.owner = self._owner = line._owner
self._minperiod = line._minperiod
self.slave = slave

Expand Down

0 comments on commit ba73229

Please sign in to comment.