hikyuu 2.5.1__py3-none-win_amd64.whl → 2.5.3__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hikyuu/__init__.py +5 -1
- hikyuu/__init__.pyi +522 -505
- hikyuu/analysis/__init__.pyi +489 -478
- hikyuu/analysis/analysis.pyi +490 -479
- hikyuu/core.pyi +491 -480
- hikyuu/cpp/__init__.pyi +3 -0
- hikyuu/cpp/core310.pyd +0 -0
- hikyuu/cpp/core310.pyi +13154 -0
- hikyuu/cpp/core311.pyd +0 -0
- hikyuu/cpp/core311.pyi +13154 -0
- hikyuu/cpp/core312.pyd +0 -0
- hikyuu/cpp/core312.pyi +13154 -0
- hikyuu/cpp/core313.pyd +0 -0
- hikyuu/cpp/core313.pyi +13132 -0
- hikyuu/cpp/core38.pyd +0 -0
- hikyuu/cpp/core38.pyi +13154 -0
- hikyuu/cpp/core39.pyd +0 -0
- hikyuu/cpp/core39.pyi +13154 -0
- hikyuu/cpp/hikyuu.dll +0 -0
- hikyuu/cpp/hikyuu.lib +0 -0
- hikyuu/data/mysql_upgrade/0027.sql +6 -0
- hikyuu/data/pytdx_to_h5.py +7 -4
- hikyuu/data/pytdx_to_mysql.py +7 -4
- hikyuu/data/sqlite_upgrade/0027.sql +8 -0
- hikyuu/draw/drawplot/__init__.py +8 -1
- hikyuu/draw/drawplot/__init__.pyi +11 -7
- hikyuu/draw/drawplot/bokeh_draw.pyi +510 -495
- hikyuu/draw/drawplot/common.pyi +1 -1
- hikyuu/draw/drawplot/echarts_draw.pyi +512 -497
- hikyuu/draw/drawplot/matplotlib_draw.py +134 -12
- hikyuu/draw/drawplot/matplotlib_draw.pyi +571 -509
- hikyuu/draw/elder.pyi +11 -11
- hikyuu/draw/kaufman.pyi +18 -18
- hikyuu/draw/volume.pyi +10 -10
- hikyuu/extend.py +0 -24
- hikyuu/extend.pyi +500 -506
- hikyuu/hub.py +154 -9
- hikyuu/hub.pyi +51 -13
- hikyuu/include/hikyuu/DataType.h +1 -2
- hikyuu/include/hikyuu/StockManager.h +2 -1
- hikyuu/include/hikyuu/StrategyContext.h +12 -3
- hikyuu/include/hikyuu/indicator/Indicator.h +24 -0
- hikyuu/include/hikyuu/indicator/Indicator2InImp.h +1 -0
- hikyuu/include/hikyuu/indicator/build_in.h +2 -0
- hikyuu/include/hikyuu/indicator/crt/ATR.h +2 -13
- hikyuu/include/hikyuu/indicator/crt/KALMAN.h +30 -0
- hikyuu/include/hikyuu/indicator/crt/TR.h +32 -0
- hikyuu/include/hikyuu/indicator/imp/IAtr.h +3 -1
- hikyuu/include/hikyuu/indicator/imp/IKalman.h +27 -0
- hikyuu/include/hikyuu/indicator/imp/ITr.h +35 -0
- hikyuu/include/hikyuu/python/convert_any.h +299 -0
- hikyuu/include/hikyuu/trade_manage/PositionRecord.h +8 -2
- hikyuu/include/hikyuu/trade_sys/allocatefunds/crt/AF_MultiFactor.h +1 -1
- hikyuu/include/hikyuu/trade_sys/allocatefunds/imp/MultiFactorAllocaterFunds.h +3 -0
- hikyuu/include/hikyuu/trade_sys/condition/ConditionBase.h +4 -1
- hikyuu/include/hikyuu/trade_sys/condition/imp/{SubCondition.h → logic/SubCondition.h} +1 -1
- hikyuu/include/hikyuu/trade_sys/environment/EnvironmentBase.h +20 -6
- hikyuu/include/hikyuu/trade_sys/environment/build_in.h +1 -0
- hikyuu/include/hikyuu/trade_sys/environment/crt/EV_Logic.h +35 -0
- hikyuu/include/hikyuu/trade_sys/environment/imp/logic/AddEnvironment.h +42 -0
- hikyuu/include/hikyuu/trade_sys/environment/imp/logic/AndEnvironment.h +42 -0
- hikyuu/include/hikyuu/trade_sys/environment/imp/logic/DivEnvironment.h +42 -0
- hikyuu/include/hikyuu/trade_sys/environment/imp/logic/MultiEnvironment.h +42 -0
- hikyuu/include/hikyuu/trade_sys/environment/imp/logic/OrEnvironment.h +42 -0
- hikyuu/include/hikyuu/trade_sys/environment/imp/logic/SubEnvironment.h +42 -0
- hikyuu/include/hikyuu/trade_sys/environment/imp/logic/__init__.py +1 -0
- hikyuu/include/hikyuu/trade_sys/portfolio/Portfolio.h +0 -4
- hikyuu/include/hikyuu/trade_sys/signal/SignalBase.h +1 -7
- hikyuu/include/hikyuu/trade_sys/signal/crt/SG_Logic.h +94 -4
- hikyuu/include/hikyuu/trade_sys/signal/crt/SG_OneSide.h +10 -0
- hikyuu/include/hikyuu/trade_sys/signal/imp/logic/AndSignal.h +19 -0
- hikyuu/include/hikyuu/trade_sys/signal/imp/logic/OperatorSignal.h +3 -1
- hikyuu/include/hikyuu/trade_sys/signal/imp/logic/OperatorValueSignal.h +1 -0
- hikyuu/include/hikyuu/trade_sys/signal/imp/logic/OrSignal.h +19 -0
- hikyuu/include/hikyuu/version.h +4 -4
- hikyuu/indicator/indicator.py +1 -0
- hikyuu/trade_manage/__init__.pyi +506 -495
- hikyuu/trade_manage/broker.pyi +3 -3
- hikyuu/trade_manage/broker_easytrader.pyi +1 -1
- hikyuu/trade_manage/trade.pyi +506 -495
- hikyuu/trade_sys/trade_sys.py +4 -3
- hikyuu/util/__init__.pyi +2 -2
- hikyuu/util/singleton.pyi +1 -1
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/METADATA +3 -2
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/RECORD +89 -65
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/top_level.txt +1 -0
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/LICENSE +0 -0
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/WHEEL +0 -0
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/entry_points.txt +0 -0
hikyuu/draw/elder.pyi
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
参见:《走进我的交易室》(2007年 地震出版社) Alexander Elder
|
|
5
5
|
"""
|
|
6
6
|
from __future__ import annotations
|
|
7
|
-
import hikyuu.cpp.
|
|
8
|
-
from hikyuu.cpp.
|
|
9
|
-
from hikyuu.cpp.
|
|
10
|
-
from hikyuu.cpp.
|
|
11
|
-
from hikyuu.cpp.
|
|
12
|
-
from hikyuu.cpp.
|
|
13
|
-
from hikyuu.cpp.
|
|
14
|
-
from hikyuu.cpp.
|
|
15
|
-
from hikyuu.cpp.
|
|
7
|
+
import hikyuu.cpp.core38
|
|
8
|
+
from hikyuu.cpp.core38 import CVAL
|
|
9
|
+
from hikyuu.cpp.core38 import EMA
|
|
10
|
+
from hikyuu.cpp.core38 import Indicator
|
|
11
|
+
from hikyuu.cpp.core38 import MACD
|
|
12
|
+
from hikyuu.cpp.core38 import PRICELIST
|
|
13
|
+
from hikyuu.cpp.core38 import Query
|
|
14
|
+
from hikyuu.cpp.core38 import SAFTYLOSS
|
|
15
|
+
from hikyuu.cpp.core38 import VIGOR
|
|
16
16
|
from hikyuu.draw.drawplot import adjust_axes_show
|
|
17
17
|
from hikyuu.draw.drawplot import ax_draw_macd2
|
|
18
18
|
from hikyuu.draw.drawplot import ax_set_locator_formatter
|
|
@@ -40,5 +40,5 @@ def draw(stock, query = ..., ma_n = 22, ma_w = 'auto', vigor_n = 13):
|
|
|
40
40
|
"""
|
|
41
41
|
绘制亚历山大.艾尔德交易系统图形
|
|
42
42
|
"""
|
|
43
|
-
CLOSE: hikyuu.cpp.
|
|
44
|
-
constant: hikyuu.cpp.
|
|
43
|
+
CLOSE: hikyuu.cpp.core38.Indicator # value = Indicator{...
|
|
44
|
+
constant: hikyuu.cpp.core38.Constant # value = <hikyuu.cpp.core38.Constant object>
|
hikyuu/draw/kaufman.pyi
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
参见:《精明交易者》(2006年 广东经济出版社)
|
|
5
5
|
"""
|
|
6
6
|
from __future__ import annotations
|
|
7
|
-
import hikyuu.cpp.
|
|
8
|
-
from hikyuu.cpp.
|
|
9
|
-
from hikyuu.cpp.
|
|
10
|
-
from hikyuu.cpp.
|
|
11
|
-
from hikyuu.cpp.
|
|
12
|
-
from hikyuu.cpp.
|
|
13
|
-
from hikyuu.cpp.
|
|
14
|
-
from hikyuu.cpp.
|
|
15
|
-
from hikyuu.cpp.
|
|
16
|
-
from hikyuu.cpp.
|
|
17
|
-
from hikyuu.cpp.
|
|
18
|
-
from hikyuu.cpp.
|
|
19
|
-
from hikyuu.cpp.
|
|
7
|
+
import hikyuu.cpp.core38
|
|
8
|
+
from hikyuu.cpp.core38 import AMA
|
|
9
|
+
from hikyuu.cpp.core38 import BUSINESS
|
|
10
|
+
from hikyuu.cpp.core38 import CVAL
|
|
11
|
+
from hikyuu.cpp.core38 import EMA
|
|
12
|
+
from hikyuu.cpp.core38 import POS
|
|
13
|
+
from hikyuu.cpp.core38 import PRICELIST
|
|
14
|
+
from hikyuu.cpp.core38 import Query
|
|
15
|
+
from hikyuu.cpp.core38 import SG_Cross
|
|
16
|
+
from hikyuu.cpp.core38 import SG_Flex
|
|
17
|
+
from hikyuu.cpp.core38 import SG_Single
|
|
18
|
+
from hikyuu.cpp.core38 import STDEV
|
|
19
|
+
from hikyuu.cpp.core38 import StockManager
|
|
20
20
|
from hikyuu.draw.drawplot import adjust_axes_show
|
|
21
21
|
from hikyuu.draw.drawplot import ax_draw_macd
|
|
22
22
|
from hikyuu.draw.drawplot import ax_set_locator_formatter
|
|
@@ -31,8 +31,8 @@ def draw2(block, query = ..., ama1 = None, ama2 = None, n = 10, filter_n = 20, f
|
|
|
31
31
|
"""
|
|
32
32
|
绘制佩里.J.考夫曼(Perry J.Kaufman) 自适应移动平均系统(AMA)
|
|
33
33
|
"""
|
|
34
|
-
CLOSE: hikyuu.cpp.
|
|
35
|
-
HIGH: hikyuu.cpp.
|
|
36
|
-
KDATA: hikyuu.cpp.
|
|
37
|
-
LOW: hikyuu.cpp.
|
|
38
|
-
OPEN: hikyuu.cpp.
|
|
34
|
+
CLOSE: hikyuu.cpp.core38.Indicator # value = Indicator{...
|
|
35
|
+
HIGH: hikyuu.cpp.core38.Indicator # value = Indicator{...
|
|
36
|
+
KDATA: hikyuu.cpp.core38.Indicator # value = Indicator{...
|
|
37
|
+
LOW: hikyuu.cpp.core38.Indicator # value = Indicator{...
|
|
38
|
+
OPEN: hikyuu.cpp.core38.Indicator # value = Indicator{...
|
hikyuu/draw/volume.pyi
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
绘制普通K线图 + 成交量(成交金额)
|
|
4
4
|
"""
|
|
5
5
|
from __future__ import annotations
|
|
6
|
-
import hikyuu.cpp.
|
|
7
|
-
from hikyuu.cpp.
|
|
8
|
-
from hikyuu.cpp.
|
|
9
|
-
from hikyuu.cpp.
|
|
10
|
-
from hikyuu.cpp.
|
|
11
|
-
from hikyuu.cpp.
|
|
12
|
-
from hikyuu.cpp.
|
|
13
|
-
from hikyuu.cpp.
|
|
6
|
+
import hikyuu.cpp.core38
|
|
7
|
+
from hikyuu.cpp.core38 import CVAL
|
|
8
|
+
from hikyuu.cpp.core38 import IF
|
|
9
|
+
from hikyuu.cpp.core38 import Indicator
|
|
10
|
+
from hikyuu.cpp.core38 import MA
|
|
11
|
+
from hikyuu.cpp.core38 import PRICELIST
|
|
12
|
+
from hikyuu.cpp.core38 import Query
|
|
13
|
+
from hikyuu.cpp.core38 import SG_Cross
|
|
14
14
|
from hikyuu.draw.drawplot import adjust_axes_show
|
|
15
15
|
from hikyuu.draw.drawplot import ax_draw_macd
|
|
16
16
|
from hikyuu.draw.drawplot import ax_set_locator_formatter
|
|
@@ -27,5 +27,5 @@ def draw2(stock, query = ..., ma1_n = 7, ma2_n = 20, ma3_n = 30, ma4_n = 42, ma5
|
|
|
27
27
|
"""
|
|
28
28
|
绘制普通K线图 + 成交量(成交金额)+ MACD
|
|
29
29
|
"""
|
|
30
|
-
CLOSE: hikyuu.cpp.
|
|
31
|
-
VOL: hikyuu.cpp.
|
|
30
|
+
CLOSE: hikyuu.cpp.core38.Indicator # value = Indicator{...
|
|
31
|
+
VOL: hikyuu.cpp.core38.Indicator # value = Indicator{...
|
hikyuu/extend.py
CHANGED
|
@@ -186,32 +186,8 @@ def KData_iter(kdata):
|
|
|
186
186
|
yield kdata[i]
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
def KData_getPos(kdata, datetime):
|
|
190
|
-
"""
|
|
191
|
-
获取指定时间对应的索引位置
|
|
192
|
-
|
|
193
|
-
:param Datetime datetime: 指定的时间
|
|
194
|
-
:return: 对应的索引位置,如果不在数据范围内,则返回 None
|
|
195
|
-
"""
|
|
196
|
-
pos = kdata._getPos(datetime)
|
|
197
|
-
return pos if pos != constant.null_size else None
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
def KData_getPosInStock(kdata, datetime):
|
|
201
|
-
"""
|
|
202
|
-
获取指定时间对应的原始K线中的索引位置
|
|
203
|
-
|
|
204
|
-
:param Datetime datetime: 指定的时间
|
|
205
|
-
:return: 对应的索引位置,如果不在数据范围内,则返回 None
|
|
206
|
-
"""
|
|
207
|
-
pos = kdata._getPosInStock(datetime)
|
|
208
|
-
return pos if pos != constant.null_size else None
|
|
209
|
-
|
|
210
|
-
|
|
211
189
|
KData.__getitem__ = KData_getitem
|
|
212
190
|
KData.__iter__ = KData_iter
|
|
213
|
-
KData.get_pos = KData_getPos
|
|
214
|
-
KData.get_pos_in_stock = KData_getPosInStock
|
|
215
191
|
|
|
216
192
|
|
|
217
193
|
# ------------------------------------------------------------------
|