hikyuu 2.6.6__py3-none-win_amd64.whl → 2.6.7__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 +10 -0
- hikyuu/__init__.pyi +567 -560
- hikyuu/analysis/__init__.pyi +539 -519
- hikyuu/analysis/analysis.pyi +540 -520
- hikyuu/core.pyi +541 -521
- hikyuu/cpp/__init__.pyi +2 -2
- hikyuu/cpp/core310.pyd +0 -0
- hikyuu/cpp/core310.pyi +1041 -859
- hikyuu/cpp/core311.pyd +0 -0
- hikyuu/cpp/core311.pyi +1041 -859
- hikyuu/cpp/core312.pyd +0 -0
- hikyuu/cpp/core312.pyi +1041 -859
- hikyuu/cpp/core313.pyd +0 -0
- hikyuu/cpp/core313.pyi +1041 -857
- hikyuu/cpp/core39.pyd +0 -0
- hikyuu/cpp/core39.pyi +1041 -859
- hikyuu/cpp/hikyuu.dll +0 -0
- hikyuu/cpp/hikyuu.lib +0 -0
- hikyuu/cpp/i18n/zh_CN/__init__.py +0 -0
- hikyuu/cpp/i18n/zh_CN/hikyuu.mo +0 -0
- hikyuu/cpp/sqlite3.dll +0 -0
- hikyuu/data/common_clickhouse.py +0 -47
- hikyuu/data/tdx_to_h5.py +1 -1
- hikyuu/draw/__init__.pyi +1 -1
- hikyuu/draw/drawplot/__init__.pyi +9 -9
- hikyuu/draw/drawplot/bokeh_draw.pyi +556 -551
- hikyuu/draw/drawplot/common.pyi +1 -1
- hikyuu/draw/drawplot/echarts_draw.py +9 -8
- hikyuu/draw/drawplot/echarts_draw.pyi +558 -553
- hikyuu/draw/drawplot/matplotlib_draw.py +3 -3
- hikyuu/draw/drawplot/matplotlib_draw.pyi +568 -563
- hikyuu/draw/elder.pyi +11 -11
- hikyuu/draw/kaufman.py +1 -1
- hikyuu/draw/kaufman.pyi +18 -18
- hikyuu/draw/volume.pyi +10 -10
- hikyuu/examples/notebook/000-Index.ipynb +1 -1
- hikyuu/examples/notebook/001-overview.ipynb +78 -63
- hikyuu/examples/notebook/002-HowToGetStock.ipynb +259 -40
- hikyuu/examples/notebook/003-HowToGetKDataAndDraw.ipynb +49 -41
- hikyuu/examples/notebook/004-IndicatorOverview.ipynb +29 -29
- hikyuu/examples/notebook/005-Drawplot.ipynb +66 -37
- hikyuu/examples/notebook/006-TradeManager.ipynb +808 -61
- hikyuu/examples/notebook/007-SystemDetails.ipynb +23 -23
- hikyuu/examples/notebook/009-RealData.ipynb +3 -3
- hikyuu/examples/notebook/010-Portfolio.ipynb +761 -122
- hikyuu/extend.py +15 -100
- hikyuu/extend.pyi +551 -567
- hikyuu/gui/HikyuuTDX.py +2 -4
- hikyuu/gui/data/MainWindow.py +185 -174
- hikyuu/hub.pyi +6 -6
- hikyuu/include/hikyuu/DataType.h +1 -10
- hikyuu/include/hikyuu/KQuery.h +22 -28
- hikyuu/include/hikyuu/MarketInfo.h +1 -1
- hikyuu/include/hikyuu/Stock.h +15 -3
- hikyuu/include/hikyuu/StockManager.h +4 -3
- hikyuu/include/hikyuu/StockTypeInfo.h +6 -0
- hikyuu/include/hikyuu/TransRecord.h +2 -8
- hikyuu/include/hikyuu/doc.h +4 -0
- hikyuu/include/hikyuu/indicator/Indicator.h +37 -0
- hikyuu/include/hikyuu/lang.h +27 -0
- hikyuu/include/hikyuu/plugin/KDataToHdf5Importer.h +6 -1
- hikyuu/include/hikyuu/plugin/hkuextra.h +56 -0
- hikyuu/include/hikyuu/plugin/interface/HkuExtraPluginInterface.h +38 -0
- hikyuu/include/hikyuu/plugin/interface/ImportKDataToHdf5PluginInterface.h +10 -1
- hikyuu/include/hikyuu/plugin/interface/plugins.h +2 -0
- hikyuu/include/hikyuu/python/pybind_utils.h +9 -0
- hikyuu/include/hikyuu/trade_manage/TradeRecord.h +1 -1
- hikyuu/include/hikyuu/utilities/config.h +0 -2
- hikyuu/include/hikyuu/utilities/os.h +3 -0
- hikyuu/include/hikyuu/utilities/plugin/PluginLoader.h +2 -1
- hikyuu/include/hikyuu/version.h +4 -4
- hikyuu/include/hikyuu/view/MarketView.h +59 -0
- hikyuu/indicator/__init__.py +0 -1
- hikyuu/indicator/indicator.py +14 -53
- hikyuu/plugin/backtest.dll +0 -0
- hikyuu/plugin/clickhousedriver.dll +0 -0
- hikyuu/plugin/dataserver.dll +0 -0
- hikyuu/plugin/device.dll +0 -0
- hikyuu/plugin/extind.dll +0 -0
- hikyuu/plugin/hkuextra.dll +0 -0
- hikyuu/plugin/import2hdf5.dll +0 -0
- hikyuu/plugin/tmreport.dll +0 -0
- hikyuu/test/test_init.py +59 -0
- hikyuu/test/test_real_tdx_import.py +336 -0
- hikyuu/test/test_tdx_import.py +315 -0
- hikyuu/test/test_tdx_real_data_import.py +281 -0
- hikyuu/trade_manage/__init__.pyi +556 -551
- hikyuu/trade_manage/broker.pyi +3 -3
- hikyuu/trade_manage/broker_easytrader.pyi +1 -1
- hikyuu/trade_manage/trade.py +4 -65
- hikyuu/trade_manage/trade.pyi +556 -563
- hikyuu/trade_sys/__init__.py +11 -0
- hikyuu/util/__init__.pyi +0 -1
- hikyuu/util/singleton.pyi +1 -1
- {hikyuu-2.6.6.dist-info → hikyuu-2.6.7.dist-info}/METADATA +6 -4
- {hikyuu-2.6.6.dist-info → hikyuu-2.6.7.dist-info}/RECORD +102 -95
- {hikyuu-2.6.6.dist-info → hikyuu-2.6.7.dist-info}/top_level.txt +2 -1
- hikyuu/cpp/i18n/zh_CN.mo +0 -0
- hikyuu/include/hikyuu/utilities/mo/mo.h +0 -64
- hikyuu/indicator/talib_wrap.py +0 -1273
- /hikyuu/include/hikyuu/utilities/{mo/moFileReader.h → moFileReader.h} +0 -0
- /hikyuu/include/hikyuu/{utilities/mo → view}/__init__.py +0 -0
- {hikyuu-2.6.6.dist-info → hikyuu-2.6.7.dist-info}/LICENSE +0 -0
- {hikyuu-2.6.6.dist-info → hikyuu-2.6.7.dist-info}/WHEEL +0 -0
- {hikyuu-2.6.6.dist-info → hikyuu-2.6.7.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.core39
|
|
8
|
+
from hikyuu.cpp.core39 import Indicator
|
|
9
|
+
from hikyuu.cpp.core39 import Query
|
|
10
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import CVAL
|
|
11
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import EMA
|
|
12
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import MACD
|
|
13
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import PRICELIST
|
|
14
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import SAFTYLOSS
|
|
15
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 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.core39.Indicator # value = Indicator{...
|
|
44
|
+
constant: hikyuu.cpp.core39.Constant # value = <hikyuu.cpp.core39.Constant object>
|
hikyuu/draw/kaufman.py
CHANGED
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.core39
|
|
8
|
+
from hikyuu.cpp.core39 import Query
|
|
9
|
+
from hikyuu.cpp.core39 import StockManager
|
|
10
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AMA
|
|
11
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import CVAL
|
|
12
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import EMA
|
|
13
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import POS
|
|
14
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import PRICELIST
|
|
15
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import RESULT
|
|
16
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import SG_Cross
|
|
17
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import SG_Flex
|
|
18
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import SG_Single
|
|
19
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import STDEV
|
|
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.core39.Indicator # value = Indicator{...
|
|
35
|
+
HIGH: hikyuu.cpp.core39.Indicator # value = Indicator{...
|
|
36
|
+
KDATA: hikyuu.cpp.core39.Indicator # value = Indicator{...
|
|
37
|
+
LOW: hikyuu.cpp.core39.Indicator # value = Indicator{...
|
|
38
|
+
OPEN: hikyuu.cpp.core39.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.core39
|
|
7
|
+
from hikyuu.cpp.core39 import Indicator
|
|
8
|
+
from hikyuu.cpp.core39 import Query
|
|
9
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import CVAL
|
|
10
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import IF
|
|
11
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import MA
|
|
12
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import PRICELIST
|
|
13
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 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.core39.Indicator # value = Indicator{...
|
|
31
|
+
VOL: hikyuu.cpp.core39.Indicator # value = Indicator{...
|
|
@@ -19,20 +19,39 @@
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"cell_type": "code",
|
|
22
|
-
"execution_count":
|
|
22
|
+
"execution_count": 1,
|
|
23
23
|
"metadata": {},
|
|
24
24
|
"outputs": [
|
|
25
|
+
{
|
|
26
|
+
"name": "stderr",
|
|
27
|
+
"output_type": "stream",
|
|
28
|
+
"text": [
|
|
29
|
+
"2025-08-11 23:22:04,241 [INFO] runing in interactive session [<module>] (D:\\workspace\\hikyuu\\hikyuu\\__init__.py:109) [hikyuu::hku_info]\n",
|
|
30
|
+
"2025-08-11 23:22:04,241 [INFO] running in jupyter [<module>] (D:\\workspace\\hikyuu\\hikyuu\\__init__.py:116) [hikyuu::hku_info]\n"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
25
33
|
{
|
|
26
34
|
"name": "stdout",
|
|
27
35
|
"output_type": "stream",
|
|
28
36
|
"text": [
|
|
29
|
-
"
|
|
30
|
-
"
|
|
37
|
+
"current plugin path: D:\\workspace\\hikyuu\\hikyuu\\plugin\n",
|
|
38
|
+
"2025-08-11 23:22:04.300 [HKU-I] - Using MYSQL BaseInfoDriver (BaseInfoDriver.cpp:57)\n",
|
|
39
|
+
"2025-08-11 23:22:04.326 [HKU-I] - 加载市场信息…… (StockManager.cpp:572)\n",
|
|
40
|
+
"2025-08-11 23:22:04.331 [HKU-I] - 加载证券类型信息…… (StockManager.cpp:590)\n",
|
|
41
|
+
"2025-08-11 23:22:04.336 [HKU-I] - 加载证券信息…… (StockManager.cpp:476)\n",
|
|
42
|
+
"2025-08-11 23:22:04.471 [HKU-I] - 加载权息数据…… (StockManager.cpp:608)\n",
|
|
43
|
+
"2025-08-11 23:22:05.420 [HKU-I] - 加载板块信息…… (StockManager.cpp:181)\n",
|
|
44
|
+
"2025-08-11 23:22:06.582 [HKU-I] - 加载K线数据…… (StockManager.cpp:185)\n",
|
|
45
|
+
"2025-08-11 23:22:06.582 [HKU-I] - 预加载 day K线数据至缓存 (最大数量: 100000)! (StockManager.cpp:229)\n",
|
|
46
|
+
"2025-08-11 23:22:06.583 [HKU-I] - 2.27 秒数据加载完毕. (StockManager.cpp:191)\n",
|
|
47
|
+
"2025-08-11 23:22:06.583 [HKU-I] - 启动行情接收. (SpotAgent.cpp:39)\n",
|
|
48
|
+
"CPU times: total: 1.62 s\n",
|
|
49
|
+
"Wall time: 3.75 s\n"
|
|
31
50
|
]
|
|
32
51
|
}
|
|
33
52
|
],
|
|
34
53
|
"source": [
|
|
35
|
-
"
|
|
54
|
+
"#%matplotlib inline\n",
|
|
36
55
|
"%time from hikyuu.interactive import *\n",
|
|
37
56
|
"#use_draw_engine('echarts') #use_draw_engine('matplotlib') #默认为'matplotlib'绘图"
|
|
38
57
|
]
|
|
@@ -47,7 +66,7 @@
|
|
|
47
66
|
},
|
|
48
67
|
{
|
|
49
68
|
"cell_type": "code",
|
|
50
|
-
"execution_count":
|
|
69
|
+
"execution_count": 2,
|
|
51
70
|
"metadata": {},
|
|
52
71
|
"outputs": [],
|
|
53
72
|
"source": [
|
|
@@ -75,7 +94,7 @@
|
|
|
75
94
|
},
|
|
76
95
|
{
|
|
77
96
|
"cell_type": "code",
|
|
78
|
-
"execution_count":
|
|
97
|
+
"execution_count": 3,
|
|
79
98
|
"metadata": {},
|
|
80
99
|
"outputs": [],
|
|
81
100
|
"source": [
|
|
@@ -102,7 +121,7 @@
|
|
|
102
121
|
},
|
|
103
122
|
{
|
|
104
123
|
"cell_type": "code",
|
|
105
|
-
"execution_count":
|
|
124
|
+
"execution_count": 4,
|
|
106
125
|
"metadata": {},
|
|
107
126
|
"outputs": [],
|
|
108
127
|
"source": [
|
|
@@ -122,7 +141,7 @@
|
|
|
122
141
|
},
|
|
123
142
|
{
|
|
124
143
|
"cell_type": "code",
|
|
125
|
-
"execution_count":
|
|
144
|
+
"execution_count": 5,
|
|
126
145
|
"metadata": {},
|
|
127
146
|
"outputs": [
|
|
128
147
|
{
|
|
@@ -134,57 +153,53 @@
|
|
|
134
153
|
"累计投入资产: 0.00\n",
|
|
135
154
|
"累计借入现金: 0.00\n",
|
|
136
155
|
"累计借入资产: 0.00\n",
|
|
137
|
-
"累计红利:
|
|
138
|
-
"现金余额:
|
|
139
|
-
"未平仓头寸净值:
|
|
140
|
-
"当前总资产:
|
|
156
|
+
"累计红利: 362.00\n",
|
|
157
|
+
"现金余额: 301532.00\n",
|
|
158
|
+
"未平仓头寸净值: 0.00\n",
|
|
159
|
+
"当前总资产: 301532.00\n",
|
|
141
160
|
"已平仓交易总成本: 0.00\n",
|
|
142
|
-
"已平仓净利润总额:
|
|
143
|
-
"单笔交易最大占用现金比例%:
|
|
161
|
+
"已平仓净利润总额: 1532.00\n",
|
|
162
|
+
"单笔交易最大占用现金比例%: 4.14\n",
|
|
144
163
|
"交易平均占用现金比例%: 3.84\n",
|
|
145
|
-
"已平仓帐户收益率%:
|
|
146
|
-
"帐户年复合收益率%:
|
|
147
|
-
"帐户平均年收益率%:
|
|
148
|
-
"赢利交易赢利总额:
|
|
149
|
-
"亏损交易亏损总额: -
|
|
150
|
-
"已平仓交易总数:
|
|
151
|
-
"赢利交易数:
|
|
152
|
-
"亏损交易数:
|
|
153
|
-
"赢利交易比例%:
|
|
154
|
-
"赢利期望值:
|
|
155
|
-
"赢利交易平均赢利:
|
|
156
|
-
"亏损交易平均亏损: -
|
|
157
|
-
"平均赢利/平均亏损比例:
|
|
158
|
-
"净赢利/亏损比例:
|
|
159
|
-
"最大单笔赢利:
|
|
160
|
-
"最大单笔盈利百分比%:
|
|
161
|
-
"最大单笔亏损: -
|
|
162
|
-
"最大单笔亏损百分比%: -
|
|
163
|
-
"赢利交易平均持仓时间:
|
|
164
|
-
"赢利交易最大持仓时间:
|
|
165
|
-
"亏损交易平均持仓时间:
|
|
166
|
-
"亏损交易最大持仓时间:
|
|
167
|
-
"空仓总时间:
|
|
168
|
-
"空仓时间/总时间%:
|
|
169
|
-
"平均空仓时间:
|
|
170
|
-
"最长空仓时间:
|
|
164
|
+
"已平仓帐户收益率%: 0.51\n",
|
|
165
|
+
"帐户年复合收益率%: 1.03\n",
|
|
166
|
+
"帐户平均年收益率%: 1.02\n",
|
|
167
|
+
"赢利交易赢利总额: 1882.00\n",
|
|
168
|
+
"亏损交易亏损总额: -350.00\n",
|
|
169
|
+
"已平仓交易总数: 6.00\n",
|
|
170
|
+
"赢利交易数: 2.00\n",
|
|
171
|
+
"亏损交易数: 4.00\n",
|
|
172
|
+
"赢利交易比例%: 33.33\n",
|
|
173
|
+
"赢利期望值: 255.33\n",
|
|
174
|
+
"赢利交易平均赢利: 941.00\n",
|
|
175
|
+
"亏损交易平均亏损: -87.50\n",
|
|
176
|
+
"平均赢利/平均亏损比例: 10.75\n",
|
|
177
|
+
"净赢利/亏损比例: 5.38\n",
|
|
178
|
+
"最大单笔赢利: 1752.00\n",
|
|
179
|
+
"最大单笔盈利百分比%: 15.83\n",
|
|
180
|
+
"最大单笔亏损: -210.00\n",
|
|
181
|
+
"最大单笔亏损百分比%: -1.80\n",
|
|
182
|
+
"赢利交易平均持仓时间: 45.50\n",
|
|
183
|
+
"赢利交易最大持仓时间: 75.00\n",
|
|
184
|
+
"亏损交易平均持仓时间: 5.50\n",
|
|
185
|
+
"亏损交易最大持仓时间: 13.00\n",
|
|
186
|
+
"空仓总时间: 69.00\n",
|
|
187
|
+
"空仓时间/总时间%: 37.00\n",
|
|
188
|
+
"平均空仓时间: 11.00\n",
|
|
189
|
+
"最长空仓时间: 32.00\n",
|
|
171
190
|
"最大连续赢利笔数: 1.00\n",
|
|
172
|
-
"最大连续亏损笔数:
|
|
173
|
-
"最大连续赢利金额:
|
|
174
|
-
"最大连续亏损金额: -
|
|
175
|
-
"R乘数期望值:
|
|
176
|
-
"交易机会频率/年: 12.
|
|
177
|
-
"年度期望R乘数:
|
|
178
|
-
"赢利交易平均R乘数: 0.
|
|
179
|
-
"亏损交易平均R乘数: -0.
|
|
180
|
-
"最大单笔赢利R乘数: 0.
|
|
181
|
-
"最大单笔亏损R乘数: -0.
|
|
182
|
-
"最大连续赢利R乘数: 0.
|
|
191
|
+
"最大连续亏损笔数: 1.00\n",
|
|
192
|
+
"最大连续赢利金额: 1752.00\n",
|
|
193
|
+
"最大连续亏损金额: -270.00\n",
|
|
194
|
+
"R乘数期望值: 0.02\n",
|
|
195
|
+
"交易机会频率/年: 12.03\n",
|
|
196
|
+
"年度期望R乘数: 0.24\n",
|
|
197
|
+
"赢利交易平均R乘数: 0.09\n",
|
|
198
|
+
"亏损交易平均R乘数: -0.01\n",
|
|
199
|
+
"最大单笔赢利R乘数: 0.16\n",
|
|
200
|
+
"最大单笔亏损R乘数: -0.02\n",
|
|
201
|
+
"最大连续赢利R乘数: 0.16\n",
|
|
183
202
|
"最大连续亏损R乘数: -0.03\n",
|
|
184
|
-
"最大回撤百分比: -0.28\n",
|
|
185
|
-
"夏普比率: -1.59\n",
|
|
186
|
-
"单笔交易盈亏百分比均值: -1.27\n",
|
|
187
|
-
"单笔交易盈亏百分比标准差: 1.96\n",
|
|
188
203
|
"\n"
|
|
189
204
|
]
|
|
190
205
|
}
|
|
@@ -209,7 +224,7 @@
|
|
|
209
224
|
},
|
|
210
225
|
{
|
|
211
226
|
"cell_type": "code",
|
|
212
|
-
"execution_count":
|
|
227
|
+
"execution_count": 6,
|
|
213
228
|
"metadata": {},
|
|
214
229
|
"outputs": [],
|
|
215
230
|
"source": [
|
|
@@ -251,24 +266,24 @@
|
|
|
251
266
|
},
|
|
252
267
|
{
|
|
253
268
|
"cell_type": "code",
|
|
254
|
-
"execution_count":
|
|
269
|
+
"execution_count": 7,
|
|
255
270
|
"metadata": {},
|
|
256
271
|
"outputs": [
|
|
257
272
|
{
|
|
258
273
|
"name": "stdout",
|
|
259
274
|
"output_type": "stream",
|
|
260
275
|
"text": [
|
|
261
|
-
"CPU times:
|
|
262
|
-
"Wall time:
|
|
276
|
+
"CPU times: total: 5.75 s\n",
|
|
277
|
+
"Wall time: 13.2 s\n"
|
|
263
278
|
]
|
|
264
279
|
},
|
|
265
280
|
{
|
|
266
281
|
"data": {
|
|
267
282
|
"text/plain": [
|
|
268
|
-
"
|
|
283
|
+
"6902"
|
|
269
284
|
]
|
|
270
285
|
},
|
|
271
|
-
"execution_count":
|
|
286
|
+
"execution_count": 7,
|
|
272
287
|
"metadata": {},
|
|
273
288
|
"output_type": "execute_result"
|
|
274
289
|
}
|
|
@@ -288,7 +303,7 @@
|
|
|
288
303
|
],
|
|
289
304
|
"metadata": {
|
|
290
305
|
"kernelspec": {
|
|
291
|
-
"display_name": "
|
|
306
|
+
"display_name": "Python 3 (ipykernel)",
|
|
292
307
|
"language": "python",
|
|
293
308
|
"name": "python3"
|
|
294
309
|
},
|
|
@@ -302,7 +317,7 @@
|
|
|
302
317
|
"name": "python",
|
|
303
318
|
"nbconvert_exporter": "python",
|
|
304
319
|
"pygments_lexer": "ipython3",
|
|
305
|
-
"version": "3.12.
|
|
320
|
+
"version": "3.12.9"
|
|
306
321
|
}
|
|
307
322
|
},
|
|
308
323
|
"nbformat": 4,
|