From 8d5b42284a5af939ac72d0a2e84755629a3dec68 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 6 May 2019 09:12:03 +0800 Subject: [PATCH] [Add] stop all cta strategies when programme is closed --- vnpy/app/cta_strategy/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/app/cta_strategy/engine.py b/vnpy/app/cta_strategy/engine.py index 901a7207..a28b4878 100644 --- a/vnpy/app/cta_strategy/engine.py +++ b/vnpy/app/cta_strategy/engine.py @@ -113,7 +113,7 @@ class CtaEngine(BaseEngine): def close(self): """""" - pass + self.stop_all_strategies() def register_event(self): """"""