From 3639ce4c6e5917f99835a3de4b8dcc474728f05b Mon Sep 17 00:00:00 2001 From: Jet Li Date: Tue, 13 Feb 2024 21:39:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3strategy=E7=9A=84=E7=BB=91?= =?UTF-8?q?=E5=AE=9Astring=20list=E5=88=B0vector=E5=87=BA=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=92=8Cpython=20TestStrat?= =?UTF-8?q?egy=E4=B8=AD=E7=9A=84typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hikyuu/strategy/strategy.py | 6 +++--- hikyuu_pywrap/strategy/_StrategyBase.cpp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hikyuu/strategy/strategy.py b/hikyuu/strategy/strategy.py index b33fe165b..1f8a7efe5 100644 --- a/hikyuu/strategy/strategy.py +++ b/hikyuu/strategy/strategy.py @@ -9,7 +9,7 @@ class TestStrategy(StrategyBase): def __init__(self): super(self.__class__, self).__init__() - self.stock_list = ['sh000001', 'sz000001'] + self.stock_list = ['sh600000', 'sz000001'] self.ktype_list = [Query.MIN, Query.DAY] def init(self): @@ -23,5 +23,5 @@ def on_bar(self, ktype): if __name__ == '__main__': - s = TestStratege() - s.run() + s = TestStrategy() + s.run() \ No newline at end of file diff --git a/hikyuu_pywrap/strategy/_StrategyBase.cpp b/hikyuu_pywrap/strategy/_StrategyBase.cpp index 94cd7b028..02b089c35 100644 --- a/hikyuu_pywrap/strategy/_StrategyBase.cpp +++ b/hikyuu_pywrap/strategy/_StrategyBase.cpp @@ -7,6 +7,7 @@ #include #include +#include namespace py = pybind11; using namespace hku;