Skip to content

Commit

Permalink
Merge pull request #290 from fasiondog/release
Browse files Browse the repository at this point in the history
Release 2.1.4
  • Loading branch information
fasiondog authored Sep 4, 2024
2 parents 08b63b5 + 667a76d commit de7b26f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
15 changes: 8 additions & 7 deletions docs/source/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
版本发布说明
--------------

2.1.4 -
2.1.4 - 2024年9月4日
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

1. fixed 分钟基本行情数据更新错误
2. 优化数据加载策略,先加载同一K线类型数据,在加载下一预加载的K线
3. 优化内部使用线程数量,以便 Strategy 运行时节省系统资源
4. interactive 工具可以使用环境变量控制部分数据加载策略,方便使用常规 .py 文件进行策略分析时,无需等待所有数据加载完毕,节省首次执行时间。
5. 完善 Strategy 和 StrategyContext
6. fixed OperatorSelector 系列序列化时内存泄漏
1. fixed 分钟级别行情数据更新错误
2. 优化提速 HikyuuTdx 数据下载
3. 优化数据加载策略,优先加载同一K线类型数据
4. 优化内部使用线程数节省系统资源
5. hikyuu.interactive 可以使用环境变量控制部分数据加载策略。可在使用 .py 文件进行策略分析时,节省首次执行时间。
6. 完善 Strategy 和 StrategyContext
7. fixed OperatorSelector 序列化时内存泄漏


2.1.3 - 2024年8月27日
Expand Down
6 changes: 6 additions & 0 deletions docs/source/strategy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Hikyuu 主要聚焦于快速策略分析,本身不提供实盘交易,Strateg
具体可参见安装目录下的 strategy 子目录下的相关 demo。


公共参数:

* **spot_worker_num=1** *(int)* : 接收行情数据时内部的线程数
* **quotation_server=""** *(string)* : 指定行情服务地址,为空表示使用本机默认配置(hikyuu.ini)


.. py:class:: Strategy
策略运行时
Expand Down
4 changes: 3 additions & 1 deletion hikyuu_cpp/hikyuu/strategy/Strategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Strategy::~Strategy() {

void Strategy::_initParam() {
setParam<int>("spot_worker_num", 1);
setParam<string>("quotation_server", string());
}

void Strategy::baseCheckParam(const string& name) const {
Expand Down Expand Up @@ -123,7 +124,8 @@ void Strategy::start(bool autoRecieveSpot) {
event([=]() { m_on_recieved_spot(revTime); });
}
});
startSpotAgent(true, getParam<int>("spot_worker_num"));
startSpotAgent(true, getParam<int>("spot_worker_num"),
getParam<string>("quotation_server"));
}

_runDaily();
Expand Down
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set_project("hikyuu")
add_rules("mode.debug", "mode.release")

-- version
set_version("2.1.3", {build = "%Y%m%d%H%M"})
set_version("2.1.4", {build = "%Y%m%d%H%M"})

set_warnings("all")

Expand Down

0 comments on commit de7b26f

Please sign in to comment.