From ef5848934f7666b1bd20d1dae4b2972c4a9bb15b Mon Sep 17 00:00:00 2001 From: 1122455801 Date: Thu, 30 May 2019 16:04:58 +0800 Subject: [PATCH] Update stop_algo.py --- vnpy/app/algo_trading/algos/stop_algo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/app/algo_trading/algos/stop_algo.py b/vnpy/app/algo_trading/algos/stop_algo.py index 14b5e94f..a25bc0e9 100644 --- a/vnpy/app/algo_trading/algos/stop_algo.py +++ b/vnpy/app/algo_trading/algos/stop_algo.py @@ -85,7 +85,7 @@ class StopAlgo(AlgoTemplate): if tick.limit_down: price = max(price, tick.limit_down) - self.vt_orderid = self.buy( + self.vt_orderid = self.sell( self.vt_symbol, price, self.volume,