mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-08 01:52:47 +08:00
properly break out of loop when we hit max drawdown
This commit is contained in:
@@ -259,6 +259,7 @@ class AlgorithmSimulator(object):
|
||||
if date == 'DONE':
|
||||
for event in snapshot:
|
||||
yield event.perf_message
|
||||
break
|
||||
|
||||
# We're still in the warmup period. Use the event to
|
||||
# update our universe, but don't yield any perf messages,
|
||||
|
||||
Reference in New Issue
Block a user