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
4 changes: 2 additions & 2 deletions zipline/utils/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def __init__(self, n, invert):

def should_trigger(self, dt):
# is this market minute's period in the list of execution periods?
val = self.cal.minute_to_session_label(dt, direction="none").value
val = self.cal.minute_to_session_label(dt, direction="none").normalize().value
return val in self.execution_period_values

@lazyval
Expand Down Expand Up @@ -527,7 +527,7 @@ def __init__(self, n, invert):

def should_trigger(self, dt):
# is this market minute's period in the list of execution periods?
value = self.cal.minute_to_session_label(dt, direction="none").value
value = self.cal.minute_to_session_label(dt, direction="none").normalize().value
return value in self.execution_period_values

@lazyval
Expand Down