Skip to content

Commit

Permalink
ERROR: __len__() should return >= 0 on live feed fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
skkarwasra02 committed Mar 9, 2023
1 parent e2674b1 commit 0fd10a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backtrader/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def next(self, datamaster=None, ticks=True):
if self.lines.datetime[0] > datamaster.lines.datetime[0]:
# can't deliver new bar, too early, go back
self.rewind()
return False
else:
if ticks:
self._tick_fill()
Expand Down

0 comments on commit 0fd10a2

Please sign in to comment.