Hikyuu Quant Frameworkは、C ++/Pythonに基づくオープンソースの定量的取引研究フレームワークで、戦略分析とバックテスト(現在は主に国内のA株市場で使用されています)に使用されています。そのコアのアイデアは、現在の成熟した体系的な取引方法に基づいており、体系的な取引全体を7つのコンポーネントに抽象化します。
プロジェクトアドレス:
プロジェクトホームページ: https://hikyuu.org/
ヘルプドキュメント: https://hikyuu.readthedocs.io/zh-cn/latest/index.html
開始: https://nbviewer.org/github/fasiondog/hikyuu/blob/master/hikyuu/examples/notebook/000-index.ipynb?flush_cache = true
ポリシーコンポーネントライブラリ: https://gitee.com/fasiondog/hikyuu_hub
ネチズンが提供するhikyuu ubuntu仮想マシン環境、baidu netdiskダウンロード(抽出コード:https://pan.baidu.com/s/1caiuwddgv0c0c0vhppe4agvw?pwd=ht8jj
例:
#创建模拟交易账户进行回测,初始资金30万
my_tm = crtTM ( init_cash = 300000 )
#创建信号指示器(以5日EMA为快线,5日EMA自身的10日EMA作为慢线,快线向上穿越慢线时买入,反之卖出)
my_sg = SG_Flex ( EMA ( CLOSE (), n = 5 ), slow_n = 10 )
#固定每次买入1000股
my_mm = MM_FixedCount ( 1000 )
#创建交易系统并运行
sys = SYS_Simple ( tm = my_tm , sg = my_sg , mm = my_mm )
sys . run ( sm [ 'sz000001' ], Query ( - 150 ))
完全な例を参照してください:https://nbviewer.jupyter.org/github/fasiondog/hikyuu/blob/master/hikyuu/examples/notebook/000-index.ipynb?flush_cache = true

プログラムのトランザクションとの共有のより多くの例(参加は、プロジェクトへの寄付と見なされます)。著者は、知識惑星のユーザーへの質問や回答に答えることを保証するだけであり、他のチャネルは状況に依存します。 (クーポンは、公式アカウントの記事の最後に時々発行される場合があります)




Hikyuuは、次のオープンソースプロジェクト(次のプロジェクトに間接的に依存しているプロジェクト)に直接依存しており、すべてのオープンソースの著者に貢献してくれたことに感謝します。
| 名前 | プロジェクトギャラリー | ライセンス |
|---|---|---|
| xmake | https://github.com/xmake-io/xmake | Apache 2.0 |
| HDF5 | https://github.com/hdfgroup/hdf5 | HDF5ライセンス |
| mysql(クライアント) | https://github.com/mysql/mysql-server | mysqlライセンス |
| FMT | https://github.com/fmtlib/fmt | FMTライセンス |
| spdlog | https://github.com/gabime/spdlog | mit |
| sqlite | https://www.sqlite.org/ | sqliteライセンス |
| フラットバッファー | https://github.com/google/flatbuffers | Apache 2.0 |
| nng | https://github.com/nanomsg/nng | mit |
| nlohmann_json | https://github.com/nlohmann/json | mit |
| ブースト | https://www.boost.org/ | ソフトウェアライセンスをブーストします |
| Python | https://www.python.org/ | Pythonライセンス |
| pybind11 | https://github.com/pybind/pybind11 | pybind11ライセンス |
| gzip-hpp | https://github.com/mapbox/gzip-hpp | BSD-2-Clauseライセンス |
| Doctest | https://github.com/doctest/doctest | mit |