Commit Graph

411 Commits

Author SHA1 Message Date
fasiondog
843bcf9703 haveParam 引出至 Python 2019-06-05 22:27:15 +08:00
fasiondog
4daebd0af0 update xmake 2019-06-04 23:13:32 +08:00
fasiondog
583738aeb5 fixed clang error by serialize nan and inf 2019-06-04 22:41:37 +08:00
fasiondog
e3b4c1bc98 try fix clang build error 2019-06-03 23:15:58 +08:00
fasiondog
93adcdbe1f add DECLINE indicator 2019-06-03 22:56:09 +08:00
fasiondog
3a956eb05b add ADVANCE 2019-06-03 22:41:57 +08:00
fasiondog
050bdb4220 Indicator OP 操作读取子节点 context 2019-06-03 22:41:42 +08:00
fasiondog
d347f00261 add ADVANCE (continue) 2019-06-02 23:23:17 +08:00
fasiondog
eebf3dda40 add ADVANCE (continue) 2019-06-02 01:17:52 +08:00
fasiondog
2c12df5737 fix some inline function define 2019-06-01 23:54:18 +08:00
fasiondog
a4ee0b2021 add Advance (continue) 2019-06-01 01:28:55 +08:00
fasiondog
4cbe0d3e7a 消除travis编译告警; PRICELIST在处理数组时将最初始的连续null值记为discard 2019-05-30 21:08:31 +08:00
fasiondog
724985e7a4 add DROPNA indicator 2019-05-28 23:13:11 +08:00
fasiondog
07a9cc0a94 add ALIGN indicator 2019-05-28 21:40:08 +08:00
fasiondog
27953a387b Null<price_t> 改为 Nan 表示 2019-05-27 23:18:59 +08:00
fasiondog
0c7c1abbc6 考虑支持 Nan 和 Inf (continue) 2019-05-27 01:42:47 +08:00
fasiondog
58ffe6221b update 2019-05-26 20:52:03 +08:00
fasiondog
ba3b9eed7a add ALIGN (continue); try modify Null<price_t> 2019-05-26 19:30:52 +08:00
fasiondog
eb3075f25f add ALIGN (continue) 2019-05-25 23:26:29 +08:00
fasiondog
9fe5526f81 add ALIGN (continue) 2019-05-24 23:47:57 +08:00
fasiondog
18ae7cef0c add ALIGN (continue); Indicator 增加 getPos 方法获取指定日期位置 2019-05-23 23:14:49 +08:00
fasiondog
68dc5bb13e add ALIGN continue 2019-05-22 23:30:40 +08:00
fasiondog
50633b0f37 补充 Indicator 帮助;add ALIGN (continue) 2019-05-21 23:10:50 +08:00
fasiondog
085315787c Parameter增加DatetimeList类型;Indicator增加getDatetime方法;增加 ALIGN (continue) 2019-05-20 23:30:51 +08:00
fasiondog
922c21d499 优化 KData 和 Indicator 的 [] 操作,支持字符串型日期 2019-05-20 01:45:46 +08:00
fasiondog
8430f0df4e Indicator 增加 getByDate, getDatetimeList方法;补充 Indicator 文档 2019-05-19 22:09:34 +08:00
fasiondog
88f03322d7 add COST indicator; add global variables K 2019-05-19 14:16:27 +08:00
fasiondog
52b0e15e5a add AD indicator 2019-05-18 23:25:11 +08:00
fasiondog
81aef37073 add ROCP, ROCR, ROC100 indicator 2019-05-18 21:52:55 +08:00
fasiondog
59e43a2527 add ROC indicator 2019-05-18 01:28:10 +08:00
fasiondog
884b5cc5d7 add DEVSQ indicator 2019-05-16 22:40:56 +08:00
fasiondog
aaf9083f48 add AVEDEV indicator 2019-05-16 22:24:12 +08:00
fasiondog
a5da4188c5 add DMA indicator 2019-05-16 21:59:32 +08:00
fasiondog
a2ca2dbd8e 按通达信方式计算SMA移动加权平均 2019-05-16 02:25:42 +08:00
fasiondog
2067b37cfa 修改SMA和通达信一致 2019-05-15 23:22:19 +08:00
fasiondog
68490c5162 add TIMELINE, TIMELINEVOL 2019-05-15 22:04:16 +08:00
fasiondog
9149a0f77b add BACKSET indicator 2019-05-15 01:48:29 +08:00
fasiondog
7530887aff add BACKSET (continue) 2019-05-13 23:02:17 +08:00
fasiondog
9cd51e22e4 add BARSCOUT indicator 2019-05-12 22:54:51 +08:00
fasiondog
bed6818302 Datetime增加startOfDay, endOfDay方法 2019-05-12 21:36:30 +08:00
fasiondog
1ed963e93a add SUMBARS indicator 2019-05-11 23:00:00 +08:00
fasiondog
8f40e167e0 add SUMBARS (continue) 2019-05-11 13:04:40 +08:00
fasiondog
9078bd335c add SUMBARS (continue) 2019-05-07 01:47:55 +08:00
fasiondog
6df4db961a add SUMBARS indicator (continue) 2019-05-05 01:44:21 +08:00
fasiondog
6f9f855a42 add BARSLAST indicator 2019-05-04 21:53:10 +08:00
fasiondog
b59a0e7d72 add BARSSINCE indicator 2019-05-04 20:35:08 +08:00
fasiondog
b0800ce001 add FILTER indicator 2019-05-04 20:02:27 +08:00
fasiondog
161b9317f2 add LONGCROSS indicator 2019-05-02 20:02:41 +08:00
fasiondog
2ea6a7d703 add CROSS and some modified 2019-05-02 19:41:58 +08:00
fasiondog
86f9ace4c2 add UPNDAY,DOWNNDAY,NDAY indicator 2019-05-02 18:27:51 +08:00
fasiondog
d890ee7953 add VAR, VARP indicator 2019-05-02 12:19:43 +08:00
fasiondog
a0f326c401 实现指标取模运算 2019-05-01 21:26:50 +08:00
fasiondog
9aab781137 add REVERSE indicator 2019-05-01 19:37:11 +08:00
fasiondog
51117df2f0 add ATAN indicator 2019-05-01 19:16:28 +08:00
fasiondog
0d85726ca8 add TAN indicator 2019-05-01 19:04:18 +08:00
fasiondog
def1cc6599 add ACOS indicator 2019-05-01 18:46:42 +08:00
fasiondog
dfc91789bb add COS indicator 2019-05-01 18:27:14 +08:00
fasiondog
d152fc6b50 add ASIN indicator 2019-05-01 18:15:48 +08:00
fasiondog
a242aaff89 add SIN indicator 2019-05-01 17:49:27 +08:00
fasiondog
58c15b7280 add LAST 2019-05-01 17:33:11 +08:00
fasiondog
1a0eb7dd28 add LAST (continue) 2019-04-30 23:20:16 +08:00
fasiondog
c20ddecc6c add LAST (continue); Modifed EVERY and EXIST 2019-04-28 23:23:03 +08:00
fasiondog
c16623edee add EVERY indicator 2019-04-28 01:19:30 +08:00
fasiondog
0f67a871d9 近一步优化通达信等指标兼容,可直接使用 MA(CLOSE) 等形式 2019-04-20 18:59:06 +08:00
fasiondog
63036b6727 modify EXIST 2019-04-20 18:13:17 +08:00
fasiondog
05bdb064cc resume xmake 2019-04-20 02:31:53 +08:00
fasiondog
7064db9307 add EXIST indicator; clear warning for xmake update 2019-04-19 23:26:35 +08:00
fasiondog
0336b5a99c add INTPART indicator 2019-04-18 23:42:45 +08:00
fasiondog
301e4f575c add STDP indicator 2019-04-18 23:14:58 +08:00
fasiondog
a7c92f2c8d release 1.1.2 2019-04-18 21:37:59 +08:00
fasiondog
3af571e33e fixed _indicator.cpp 2019-04-18 01:00:18 +08:00
fasiondog
4df93ba3ae try add operator(k) for indicator 2019-04-17 23:37:22 +08:00
fasiondog
8dd85d3cea 优化打印信息 2019-04-17 23:20:25 +08:00
fasiondog
46d5ee6e49 fixed 原型法使用时,无法更换底层,容易误用 2019-04-17 23:12:41 +08:00
fasiondog
1782d4c7fa roundEx算法切换成银行家算法 2019-04-17 02:39:07 +08:00
fasiondog
9172a32f9c add FLOOR,CEILING indicator 2019-04-15 23:11:12 +08:00
fasiondog
199fc8528d fixed indicator using as prototype cannot recalculate 2019-04-15 21:22:31 +08:00
fasiondog
ef584a5241 add ROUND, ROUNDUP, ROUNDDWON 2019-04-15 00:58:41 +08:00
fasiondog
9e035adedd add ROUND (continue) 2019-04-14 21:51:12 +08:00
fasiondog
d1bc62433b add LLVBARS 2019-04-14 21:26:46 +08:00
fasiondog
df94d53d38 add SQRT indicator 2019-04-14 14:29:50 +08:00
fasiondog
960041a809 add POW indicator 2019-04-14 11:17:47 +08:00
fasiondog
7e75914eba test clear copyright warning 2019-04-14 11:05:08 +08:00
fasiondog
1f66a29b36 Optimize the COUNT to remove double loops 2019-04-14 10:33:19 +08:00
fasiondog
0ced287e69 Optimize the SUM to remove double loops 2019-04-14 00:53:51 +08:00
fasiondog
a042eb1d1f 优化LLV、HHV,去除双重循环 2019-04-13 19:25:15 +08:00
fasiondog
4658283b28 优化HHV实现 2019-04-13 02:29:28 +08:00
fasiondog
d4dc9d048d complete HHVBARS test and fixed bug 2019-04-12 01:46:39 +08:00
fasiondog
40dae67723 add HHVBARS ind 2019-04-11 23:30:51 +08:00
fasiondog
e440835b82 修改Linux下log(0)和Windows返回值不同问题 2019-04-11 22:49:33 +08:00
fasiondog
ce0e05bd98 add LN, LOG ind 2019-04-11 02:10:41 +08:00
fasiondog
c275f23b1b Indicator直接支持原型方式使用 2019-04-10 22:48:42 +08:00
fasiondog
5a18664e45 fixed IF bug, when input unequal lenght; modify CVAL and test 2019-04-10 01:28:02 +08:00
fasiondog
cd3f4e6a29 add BETWEEN test; modify CVAL(continue); modify MAX/MIN test 2019-04-09 23:30:22 +08:00
fasiondog
60c1ff7858 add BETWEEN docs and clear warning on Linux 2019-04-09 01:58:22 +08:00
fasiondog
8fbdcd2214 fixed some warning by cppcheck 2019-04-09 01:46:21 +08:00
fasiondog
2fc740cf71 add BETWEEN ind; add MAX, MIN annotation 2019-04-08 23:27:34 +08:00
fasiondog
3f94f9b5e0 release 1.1.1 2019-04-08 01:37:24 +08:00
fasiondog
df6ae00d23 待发布 1.1.1 2019-04-07 23:34:32 +08:00
fasiondog
edaca2d1d7 Support to obtain current financial information 2019-04-07 22:55:47 +08:00
fasiondog
a63b35fbc0 fix getHistoryFinanceInfo on Linux,sizeof(unsigned long) is 8 not 4 2019-04-06 21:47:00 +08:00
fasiondog
48992dd162 get history finance (continue) 2019-04-06 02:40:53 +08:00
fasiondog
b73efaad90 update 2019-04-05 17:43:35 +08:00
fasiondog
1acd781c56 fix linux complie 2019-04-05 13:17:38 +08:00
fasiondog
bc837cbe8a get the history finance Info (continue) 2019-04-05 02:29:32 +08:00
fasiondog
0c90ef6645 get the history finance Info (continue) 2019-04-04 02:07:54 +08:00
fasiondog
0518658880 get the history finance Info (continue) 2019-04-03 22:31:55 +08:00
fasiondog
ed352c38c6 add EXP Indicator 2019-04-03 02:18:42 +08:00
fasiondog
84b664222e add SGN Indicator 2019-04-03 01:49:43 +08:00
fasiondog
726c21f24a get the history finance Info (continue) 2019-04-02 23:26:59 +08:00
fasiondog
0b9923cf7d add NOT indicator 2019-04-02 21:49:33 +08:00
fasiondog
b19dc758be add ABS Indicator 2019-04-02 01:49:40 +08:00
fasiondog
12d3443d5c add SUM test case and doc 2019-04-02 01:16:33 +08:00
fasiondog
464eb8e23f add SUM Indicator(continue) 2019-04-01 23:37:54 +08:00
fasiondog
36b19326a0 HHV/LLV add n = 0 process and test case 2019-04-01 23:02:04 +08:00
fasiondog
89ac67823b IF supports the direct use of the price_t 2019-04-01 21:27:08 +08:00
fasiondog
e87dc55f66 COUNT add n = 0 process 2019-04-01 01:28:26 +08:00
fasiondog
131b3e51de adjustment: Indicator code structure is easy to miss serialization 2019-03-31 02:38:08 +08:00
fasiondog
a6b8b7ca44 add ILiuTongPan serialization 2019-03-30 23:19:11 +08:00
fasiondog
12760ffaab remove global context 2019-03-30 23:13:37 +08:00
fasiondog
e6a3c8d6d2 add test 2019-03-30 03:21:43 +08:00
fasiondog
606e5209fe fix LIUTONGPAN 2019-03-29 22:54:40 +08:00
fasiondog
83640ec06e add: unit test for LIUTONGPAN;
fix: LIUTONGPAN error
2019-03-29 21:12:14 +08:00
fasiondog
b9168b197f 实现select; 增加setContext直接以KData为参数; kaufman画图小调整 2019-03-28 23:24:15 +08:00
fasiondog
87e028c1bd clear some info from Cppcheck 2019-03-28 02:11:13 +08:00
fasiondog
2acb7093c7 需要上下文的指标创建时立即执行计算 2019-03-27 23:17:49 +08:00
fasiondog
8b49ab0406 消除CppCheck检测的两个漏洞 2019-03-27 01:37:59 +08:00
fasiondog
848d0248b9 处理 python 中 TA_LIB 包装产生的 bad_weak_ptr 错误(未完) 2019-03-26 23:27:51 +08:00
fasiondog
380812dcc0 清除travis编译失败告警 2019-03-25 23:07:04 +08:00
fasiondog
a72dbb18c1 实现IF指标运算;实现COUNT指标;更新帮助与文档 2019-03-25 22:50:50 +08:00
fasiondog
62833373bd 实现IF指标运算(未完) 2019-03-25 00:55:45 +08:00
fasiondog
3b44d16e72 实现IF指标运算(未完) 2019-03-24 23:27:48 +08:00
fasiondog
b3aa700a04 消除linux编译告警 2019-03-24 22:05:08 +08:00
fasiondog
0f903f75dd OPType::TWO更名为WEAVE;消除Linux下编译告警 2019-03-24 21:44:55 +08:00
fasiondog
f85210a620 update 2019-03-24 20:25:43 +08:00
fasiondog
a46d824786 update 2019-03-24 01:59:03 +08:00
fasiondog
08670207f0 update 2019-03-24 00:17:11 +08:00
fasiondog
1cd2427b69 update 2019-03-23 18:54:10 +08:00
fasiondog
5ea070cc1f update 2019-03-23 14:43:08 +08:00
fasiondog
be327070ca update 2019-03-23 13:07:54 +08:00
fasiondog
cf2d987c52 update 2019-03-23 02:27:28 +08:00
fasiondog
529bf2d690 update 2019-03-22 23:12:28 +08:00
fasiondog
6bafc4b85b update 2019-03-21 23:26:19 +08:00
fasiondog
6309fe2e6b update 2019-03-20 23:23:31 +08:00
fasiondog
ef0b59d87c update 2019-03-20 02:47:02 +08:00
fasiondog
b978eef2b9 update 2019-03-19 01:41:12 +08:00
fasiondog
4240d6a70c update 2019-03-18 23:18:50 +08:00
fasiondog
d718b9034e update 2019-03-18 23:12:01 +08:00
fasiondog
13a9f63d3c update 2019-03-18 03:00:42 +08:00
fasiondog
50a619d01c update 2019-03-17 23:07:30 +08:00
fasiondog
0a7227c230 update 2019-03-17 02:43:30 +08:00
fasiondog
f436e8f19b update 2019-03-16 14:43:50 +08:00
fasiondog
c20fb1155a update 2019-03-15 23:35:09 +08:00
fasiondog
062634372b update 2019-03-15 01:49:07 +08:00
fasiondog
e7a782548f update 2019-03-14 01:53:13 +08:00
fasiondog
bada6db02b update 2019-03-12 01:23:51 +08:00
fasiondog
a35b3f8fc1 update 2019-03-11 23:25:21 +08:00
fasiondog
6944fa74b0 update 2019-03-11 01:44:21 +08:00
fasiondog
318175142e update 2019-03-10 19:16:03 +08:00
fasiondog
b142da8c57 update 2019-03-09 23:30:04 +08:00
fasiondog
a65b19ed0e indicator改造 2019-03-07 02:15:10 +08:00
fasiondog
382f3a0395 indicator改造 2019-03-07 02:06:01 +08:00
fasiondog
a2f61b9300 fix: linux编译告警 2019-03-07 00:06:16 +08:00
fasiondog
bad1034e7e 增加流通盘与换手率指标 2019-03-06 23:14:07 +08:00
fasiondog
9f0bc960cc Parameter 支持 KData 2019-03-05 00:46:17 +08:00
fasiondog
59e6991a0d Parameter 支持 KData 2019-03-04 23:30:43 +08:00
fasiondog
640ab5e331 Parameter 支持 KQuery 2019-03-03 21:55:22 +08:00
fasiondog
ea4441aa73 Parameter 增加 Stock 支持 2019-03-03 20:47:28 +08:00
fasiondog
a10b3e68d0 fixed #22 MoneyManagerBase.getBuyNumber中,在不自动存入资金的情况下,根据成本算法调整买入数量 2019-02-24 19:38:17 +08:00
fasiondog
1e88df1f38 支持历史分笔数据 2019-02-11 21:13:06 +08:00
fasiondog
d3547889cb TimeLine更名TimeLineList 2019-02-11 16:33:55 +08:00
fasiondog
047bbcb7b9 添加日志打印的等级控制 2019-02-11 15:20:43 +08:00
fasiondog
714f582922 分笔成交数据支持(continue) 2019-02-11 02:14:14 +08:00
fasiondog
724204e723 fix:离开咖啡馆提交的太急导致编译失败 2019-02-11 00:16:35 +08:00
fasiondog
f3b9612403 增加分笔成交数据支持(continue) 2019-02-10 23:31:27 +08:00
fasiondog
4e797c266b 支持分时线 2019-02-10 21:26:02 +08:00
fasiondog
bc3dad7e7d 分时线支持 2019-02-09 18:25:16 +08:00
fasiondog
57fbbd1ece 分时线支持 2019-02-08 22:41:20 +08:00
fasiondog
38fc6bc353 定义分时线结构 2019-01-27 23:03:33 +08:00
fasiondog
ca337ed7d0 周线及以上复权 2019-01-12 18:54:43 +08:00
fasiondog
c05e48b10c 周线以上复权(继续) 2019-01-11 01:28:54 +08:00
fasiondog
8235935efc 周线及以上复权(继续) 2019-01-09 01:09:02 +08:00
fasiondog
2fd18a6e8f 完善Datetime便捷方法保护及补充测试用例;调整dateOfWeek在参数超出范围时的返回结果。 2019-01-06 16:22:51 +08:00
fasiondog
ebebb37f12 Datetime添加next、pre系列方法 2019-01-05 23:17:07 +08:00
fasiondog
2a07e907e4 DatetimeDatetime增加today,dateOfWeek,startOfWeek,endOfWeek,startOfMonth,endOfMonth,startOfQuarter,endOfQuerter,startOfYear, endOfYear方法及其帮助与测试用例。 2019-01-05 18:55:34 +08:00
fasiondog
0ec2b2d901 Datetime增加几个便捷方法 2019-01-05 02:15:36 +08:00
fasiondog
fbc08e538a data tool for mysql(continue) 增加数据库升级机制 2018-11-19 02:42:31 +08:00
fasiondog
8b9fefb454 1、配合数据导入工具,交互模式下自动检测配置文件是否存在并提示
2、xmake工程增加最小版本限制
3、修改StockManager预加载时的打印信息
2018-11-17 20:22:06 +08:00
fasiondog
27fc4fa0c0 Bugfix:KTYPE改为string模式后,完善对缓存为空和为缓存的情况,导致realtimeUpdate时失败退出 2018-11-07 02:41:14 +08:00
fasiondog
178ad8a394 Change Enum KQuery::KType to string (continue) 2018-10-06 02:03:02 +08:00
fasiondog
cb86c1cbf1 change Enum KQuery::KType to string for more kdata type (will continue) 2018-10-04 20:55:39 +08:00
fasiondog
66fecf64bf update xmake for macosx 2018-09-20 02:43:03 +08:00
fasiondog
3e15fdf9d4 fix xmake for linux 2018-09-19 23:13:55 +08:00
fasiondog
15c96aba18 update xmake for macosx 2018-09-19 02:45:50 +08:00
fasiondog
9b648d9067 simplify the code with @ruki's help 2018-09-15 15:31:06 +08:00
fasiondog
06027fa2f2 update xmake for linux
clean unused code
2018-09-15 03:35:04 +08:00
fasiondog
1a940db60e update xmake for linux 2018-09-15 02:52:35 +08:00
fasiondog
4debb4c2b6 travis 2018-09-13 22:42:36 +08:00
fasiondog
b654ee2b0e travis 2018-09-13 22:08:09 +08:00
fasiondog
eef096c02a modified xmake project with the help of @ruki 2018-09-12 01:14:16 +08:00
fasiondog
28895fff7e add getVersion, xmake remove some options 2018-09-10 02:21:19 +08:00
fasiondog
acea8fa94e Remove the dependency on boost_chrono and switch to C++11 chrono 2018-09-10 01:14:42 +08:00
fasiondog
f8df667f3d update xmake project 2018-09-09 17:45:22 +08:00
fasiondog
83eaa41a80 update xmake project for linux 2018-09-09 16:43:04 +08:00
fasiondog
abb87c94c6 continue xmake for linux 2018-09-07 02:06:06 +08:00
fasiondog
fbfe45f62c xmake for linux and clean warn with gcc 2018-09-04 01:41:24 +08:00
fasiondog
65d27a2126 trans demo.cpp file to utf-8 code 2018-08-31 02:50:06 +08:00
fasiondog
38de8a7f8e Solves the problem of redirecting C++ output to python;
Remove any additional eclipse configuration files
2018-08-30 02:38:13 +08:00
fasiondog
bc3a875a2c 1. Fix: VS2017 can't use Boost.python's docstring
2. Support C++17
3. Clear "tes_data/tmp"
2018-08-26 18:47:06 +08:00
fasiondog
a538038505 1. Deprecated LOG4CPLUS and use spdlog for logging;
2. Bug fix: Can't use log output when exiting hikyuu;
3. Update submodule
2018-08-21 01:56:29 +08:00
fasiondog
8379b053a1 Re-organize source code structure; use xmake for build 2018-08-20 04:01:34 +08:00