mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-29 13:00:42 +08:00
BUG: Need to set portfolio_needs_update on the algorithm
not on the simulator
This commit is contained in:
1 parent
cfe6296a3e
commit
a07c94665b
1 file changed
+1
-1
@@ -195,7 +195,7 @@ class AlgorithmSimulator(object):
|
||||
)
|
||||
self.algo.perf_tracker.handle_intraday_close()
|
||||
|
||||
self.portfolio_needs_update = True
|
||||
self.algo.portfolio_needs_update = True
|
||||
|
||||
risk_message = self.algo.perf_tracker.handle_simulation_end()
|
||||
yield risk_message
|
||||
|
||||
Reference in new issue
Block a user