From 31d4f0b04ef2acb0f83af9d0cc71f03c7fffc196 Mon Sep 17 00:00:00 2001 From: 1122455801 Date: Thu, 30 May 2019 16:05:03 +0800 Subject: [PATCH] Update engine.py --- vnpy/app/algo_trading/engine.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vnpy/app/algo_trading/engine.py b/vnpy/app/algo_trading/engine.py index 1bfbd20c..a3dc7740 100644 --- a/vnpy/app/algo_trading/engine.py +++ b/vnpy/app/algo_trading/engine.py @@ -49,6 +49,7 @@ class AlgoEngine(BaseEngine): from .algos.stop_algo import StopAlgo from .algos.best_limit_algo import BestLimitAlgo from .algos.grid_algo import GridAlgo + from .algos.dma_algo import DmaAlgo self.add_algo_template(TwapAlgo) self.add_algo_template(IcebergAlgo) @@ -56,6 +57,7 @@ class AlgoEngine(BaseEngine): self.add_algo_template(StopAlgo) self.add_algo_template(BestLimitAlgo) self.add_algo_template(GridAlgo) + self.add_algo_template(DmaAlgo) def add_algo_template(self, template: AlgoTemplate): """"""