diff --git a/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/ctaBacktesting.py b/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/ctaBacktesting.py index 95e042d6..bdf8b3e4 100644 --- a/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/ctaBacktesting.py +++ b/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/ctaBacktesting.py @@ -120,7 +120,7 @@ class BacktestingEngine(object): #---------------------------------------------------------------------- def loadHistoryData(self): """载入历史数据""" - host, port = loadMongoSetting() + host, port, logging = loadMongoSetting() self.dbClient = pymongo.MongoClient(host, port) collection = self.dbClient[self.dbName][self.symbol] diff --git a/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/ctaHistoryData.py b/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/ctaHistoryData.py index 5039adee..4d7376e8 100644 --- a/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/ctaHistoryData.py +++ b/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/ctaHistoryData.py @@ -33,7 +33,7 @@ class HistoryDataEngine(object): #---------------------------------------------------------------------- def __init__(self): """Constructor""" - host, port = loadMongoSetting() + host, port, logging = loadMongoSetting() self.dbClient = pymongo.MongoClient(host, port) self.datayesClient = DatayesClient() @@ -322,7 +322,7 @@ def loadMcCsv(fileName, dbName, symbol): print u'开始读取CSV文件%s中的数据插入到%s的%s中' %(fileName, dbName, symbol) # 锁定集合,并创建索引 - host, port = loadMongoSetting() + host, port, logging = loadMongoSetting() client = pymongo.MongoClient(host, port) collection = client[dbName][symbol] diff --git a/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/tools/multiTimeFrame/ctaBacktestMultiTF.py b/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/tools/multiTimeFrame/ctaBacktestMultiTF.py index cc5c2579..f9cc0c0d 100644 --- a/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/tools/multiTimeFrame/ctaBacktestMultiTF.py +++ b/vn.how/tick2trade/vn.trader_t2t/ctaAlgo/tools/multiTimeFrame/ctaBacktestMultiTF.py @@ -72,7 +72,7 @@ class BacktestEngineMultiTF(BacktestingEngine): """载入历史数据""" """load historical data""" - host, port = loadMongoSetting() + host, port, logging = loadMongoSetting() self.dbClient = pymongo.MongoClient(host, port) collection = self.dbClient[self.dbName][self.symbol]