From ecb86676c17c2987e10194a2820e2d5c0fd870c9 Mon Sep 17 00:00:00 2001 From: cclauss Date: Wed, 20 Jun 2018 09:34:19 +0200 Subject: [PATCH] Update dmaAlgo.py --- vnpy/trader/app/algoTrading/dmaAlgo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vnpy/trader/app/algoTrading/dmaAlgo.py b/vnpy/trader/app/algoTrading/dmaAlgo.py index 72c3bea4..2f0736f2 100644 --- a/vnpy/trader/app/algoTrading/dmaAlgo.py +++ b/vnpy/trader/app/algoTrading/dmaAlgo.py @@ -31,9 +31,9 @@ class DmaAlgo(AlgoTemplate): # 参数,强制类型转换,保证从CSV加载的配置正确 self.vtSymbol = str(setting['vtSymbol']) # 合约代码 - self.direction = text_type(setting['direction']) # 买卖 - self.offset = text_type(setting['offset']) # 开平 - self.priceType = text_type(setting['priceType']) # 价格类型 + self.direction = text_type(setting['direction']) # 买卖 + self.offset = text_type(setting['offset']) # 开平 + self.priceType = text_type(setting['priceType']) # 价格类型 self.price = float(setting['price']) # 价格 self.totalVolume = float(setting['totalVolume']) # 数量