Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions backtrader/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,7 @@ def next_open(self):
pass

def _oncepost_open(self):
minperstatus = self._minperstatus
if minperstatus < 0:
self.next_open()
elif minperstatus == 0:
self.nextstart_open() # only called for the 1st value
else:
self.prenext_open()
self._next_open()

def _oncepost(self, dt):
for indicator in self._lineiterators[LineIterator.IndType]:
Expand Down