diff --git a/zipline/gens/tradesimulation.py b/zipline/gens/tradesimulation.py index 8d4e0ecf..0ecde30b 100644 --- a/zipline/gens/tradesimulation.py +++ b/zipline/gens/tradesimulation.py @@ -126,6 +126,7 @@ class AlgorithmSimulator(object): self.update_universe(event) updated = True if event.type == DATASOURCE_TYPE.BENCHMARK: + self.algo.set_datetime(event.dt) bm_updated = True txns, orders = self.algo.blotter.process_trade(event) for data in chain(txns, orders, [event]):