diff --git a/vnpy/api/ib/vnib/vnib/vnib.cpp b/vnpy/api/ib/vnib/vnib/vnib.cpp index 261aeba0..2fc4d66c 100644 --- a/vnpy/api/ib/vnib/vnib/vnib.cpp +++ b/vnpy/api/ib/vnib/vnib/vnib.cpp @@ -1798,9 +1798,6 @@ BOOST_PYTHON_MODULE(vnib) class_>>("OrderConditionList") .def(vector_indexing_suite>, true>()); - class_>>("OrderConditionList") - .def(vector_indexing_suite>, true>()); - class_>("StringList") .def(vector_indexing_suite, true>()); diff --git a/vnpy/trader/app/ctaStrategy/tools/ctaLineBar.py b/vnpy/trader/app/ctaStrategy/tools/ctaLineBar.py index a741c362..8d72331a 100644 --- a/vnpy/trader/app/ctaStrategy/tools/ctaLineBar.py +++ b/vnpy/trader/app/ctaStrategy/tools/ctaLineBar.py @@ -228,7 +228,7 @@ class CtaLineBar(object): self.__recountEma() self.__recountDmi() self.__recountAtr() - self.__recoundAvgVol() + self.__recountAvgVol() self.__recountRsi() self.__recountCmi() self.__recountBoll() @@ -695,7 +695,7 @@ class CtaLineBar(object): self.lineAtr3.append(self.barAtr3) #---------------------------------------------------------------------- - def __recoundAvgVol(self): + def __recountAvgVol(self): """计算平均成交量""" # 1、lineBar满足长度才执行计算