hikyuu 2.6.7__py3-none-win_amd64.whl → 2.6.8.2__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 +6 -2
- hikyuu/__init__.pyi +37 -10
- hikyuu/analysis/__init__.pyi +24 -0
- hikyuu/analysis/analysis.pyi +25 -1
- hikyuu/core.pyi +26 -2
- hikyuu/cpp/concrt140.dll +0 -0
- hikyuu/cpp/core310.pyd +0 -0
- hikyuu/cpp/core310.pyi +419 -31
- hikyuu/cpp/core311.pyd +0 -0
- hikyuu/cpp/core311.pyi +419 -31
- hikyuu/cpp/core312.pyd +0 -0
- hikyuu/cpp/core312.pyi +419 -31
- hikyuu/cpp/core313.pyd +0 -0
- hikyuu/cpp/core313.pyi +419 -31
- hikyuu/cpp/core39.pyd +0 -0
- hikyuu/cpp/core39.pyi +419 -31
- hikyuu/cpp/hikyuu.dll +0 -0
- hikyuu/cpp/hikyuu.lib +0 -0
- hikyuu/cpp/hku_hdf5.dll +0 -0
- hikyuu/cpp/hku_hdf5_cpp.dll +0 -0
- hikyuu/cpp/hku_hdf5_hl.dll +0 -0
- hikyuu/cpp/hku_hdf5_hl_cpp.dll +0 -0
- hikyuu/cpp/i18n/zh_CN/hikyuu.mo +0 -0
- hikyuu/cpp/msvcp140.dll +0 -0
- hikyuu/cpp/msvcp140_1.dll +0 -0
- hikyuu/cpp/msvcp140_2.dll +0 -0
- hikyuu/cpp/msvcp140_atomic_wait.dll +0 -0
- hikyuu/cpp/msvcp140_codecvt_ids.dll +0 -0
- hikyuu/cpp/sqlite3.dll +0 -0
- hikyuu/cpp/vcruntime140.dll +0 -0
- hikyuu/cpp/vcruntime140_1.dll +0 -0
- hikyuu/draw/__init__.pyi +1 -1
- hikyuu/draw/drawplot/bokeh_draw.pyi +33 -8
- hikyuu/draw/drawplot/echarts_draw.pyi +33 -8
- hikyuu/draw/drawplot/matplotlib_draw.pyi +33 -8
- hikyuu/extend.py +19 -0
- hikyuu/extend.pyi +27 -3
- hikyuu/hub.pyi +6 -6
- hikyuu/include/hikyuu/DataType.h +2 -2
- hikyuu/include/hikyuu/KData.h +91 -25
- hikyuu/include/hikyuu/KDataImp.h +31 -46
- hikyuu/include/hikyuu/KDataPrivatedBufferImp.h +73 -0
- hikyuu/include/hikyuu/KDataSharedBufferImp.h +69 -0
- hikyuu/include/hikyuu/KQuery.h +16 -4
- hikyuu/include/hikyuu/KRecord.h +4 -1
- hikyuu/include/hikyuu/Stock.h +10 -4
- hikyuu/include/hikyuu/StockManager.h +11 -3
- hikyuu/include/hikyuu/TransRecord.h +2 -2
- hikyuu/include/hikyuu/data_driver/KDataDriver.h +5 -0
- hikyuu/include/hikyuu/doc.h +2 -2
- hikyuu/include/hikyuu/global/GlobalSpotAgent.h +8 -0
- hikyuu/include/hikyuu/global/agent/SpotAgent.h +12 -7
- hikyuu/include/hikyuu/indicator/Indicator.h +11 -0
- hikyuu/include/hikyuu/indicator/Indicator2InImp.h +9 -0
- hikyuu/include/hikyuu/indicator/IndicatorImp.h +83 -15
- hikyuu/include/hikyuu/indicator/build_in.h +1 -0
- hikyuu/include/hikyuu/indicator/crt/AMA.h +2 -1
- hikyuu/include/hikyuu/indicator/crt/ATR.h +1 -1
- hikyuu/include/hikyuu/indicator/crt/CONTEXT.h +2 -0
- hikyuu/include/hikyuu/indicator/crt/CYCLE.h +3 -0
- hikyuu/include/hikyuu/indicator/crt/DMA.h +1 -1
- hikyuu/include/hikyuu/indicator/crt/IC.h +14 -6
- hikyuu/include/hikyuu/indicator/crt/ICIR.h +8 -4
- hikyuu/include/hikyuu/indicator/crt/INSUM.h +2 -0
- hikyuu/include/hikyuu/indicator/crt/PRICELIST.h +2 -0
- hikyuu/include/hikyuu/indicator/crt/REFX.h +25 -0
- hikyuu/include/hikyuu/indicator/crt/SLICE.h +4 -4
- hikyuu/include/hikyuu/indicator/crt/SPEARMAN.h +3 -2
- hikyuu/include/hikyuu/indicator/imp/IContext.h +5 -0
- hikyuu/include/hikyuu/indicator/imp/ICval.h +6 -0
- hikyuu/include/hikyuu/indicator/imp/IDropna.h +9 -0
- hikyuu/include/hikyuu/indicator/imp/IIc.h +2 -1
- hikyuu/include/hikyuu/indicator/imp/IPriceList.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IRefX.h +23 -0
- hikyuu/include/hikyuu/plugin/backtest.h +2 -0
- hikyuu/include/hikyuu/plugin/extind.h +45 -0
- hikyuu/include/hikyuu/plugin/hkuextra.h +21 -0
- hikyuu/include/hikyuu/plugin/interface/HkuExtraPluginInterface.h +16 -0
- hikyuu/include/hikyuu/plugin/interface/TMReportPluginInterface.h +1 -0
- hikyuu/include/hikyuu/python/pybind_utils.h +27 -11
- hikyuu/include/hikyuu/trade_manage/Performance.h +0 -1
- hikyuu/include/hikyuu/trade_manage/TradeCostBase.h +5 -0
- hikyuu/include/hikyuu/trade_manage/TradeManager.h +4 -0
- hikyuu/include/hikyuu/trade_manage/TradeManagerBase.h +10 -1
- hikyuu/include/hikyuu/trade_sys/allocatefunds/AllocateFundsBase.h +5 -0
- hikyuu/include/hikyuu/trade_sys/condition/ConditionBase.h +5 -0
- hikyuu/include/hikyuu/trade_sys/environment/EnvironmentBase.h +5 -0
- hikyuu/include/hikyuu/trade_sys/moneymanager/MoneyManagerBase.h +5 -0
- hikyuu/include/hikyuu/trade_sys/multifactor/MultiFactorBase.h +6 -3
- hikyuu/include/hikyuu/trade_sys/portfolio/Portfolio.h +4 -0
- hikyuu/include/hikyuu/trade_sys/profitgoal/ProfitGoalBase.h +5 -0
- hikyuu/include/hikyuu/trade_sys/selector/SelectorBase.h +5 -2
- hikyuu/include/hikyuu/trade_sys/signal/SignalBase.h +5 -0
- hikyuu/include/hikyuu/trade_sys/slippage/SlippageBase.h +5 -0
- hikyuu/include/hikyuu/trade_sys/stoploss/StoplossBase.h +6 -1
- hikyuu/include/hikyuu/trade_sys/system/System.h +5 -0
- hikyuu/include/hikyuu/utilities/datetime/Datetime.h +2 -2
- hikyuu/include/hikyuu/utilities/os.h +4 -0
- hikyuu/include/hikyuu/utilities/thread/GlobalMQStealThreadPool.h +1 -1
- hikyuu/include/hikyuu/utilities/thread/GlobalMQThreadPool.h +1 -1
- hikyuu/include/hikyuu/utilities/thread/GlobalThreadPool.h +1 -1
- hikyuu/include/hikyuu/utilities/thread/MQThreadPool.h +1 -1
- hikyuu/include/hikyuu/version.h +4 -4
- hikyuu/include/hikyuu/views/arrow_common.h +38 -0
- hikyuu/include/hikyuu/views/arrow_views.h +117 -0
- hikyuu/indicator/indicator.py +4 -5
- 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/strategy/strategy_demo1.py +1 -1
- hikyuu/test/test_init.py +19 -19
- hikyuu/trade_manage/__init__.pyi +32 -7
- hikyuu/trade_manage/trade.py +6 -0
- hikyuu/trade_manage/trade.pyi +32 -7
- hikyuu/trade_sys/__init__.py +4 -0
- hikyuu/util/__init__.pyi +1 -1
- hikyuu/util/singleton.pyi +1 -1
- {hikyuu-2.6.7.dist-info → hikyuu-2.6.8.2.dist-info}/METADATA +15 -3
- {hikyuu-2.6.7.dist-info → hikyuu-2.6.8.2.dist-info}/RECORD +128 -125
- {hikyuu-2.6.7.dist-info → hikyuu-2.6.8.2.dist-info}/WHEEL +1 -1
- {hikyuu-2.6.7.dist-info → hikyuu-2.6.8.2.dist-info}/top_level.txt +1 -1
- hikyuu/include/hikyuu/view/MarketView.h +0 -59
- hikyuu/setup.py +0 -104
- hikyuu-2.6.7.dist-info/LICENSE +0 -201
- /hikyuu/include/hikyuu/{view → views}/__init__.py +0 -0
- {hikyuu-2.6.7.dist-info → hikyuu-2.6.8.2.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 hikyuu.org
|
|
3
|
+
*
|
|
4
|
+
* Created on: 2025-08-13
|
|
5
|
+
* Author: fasiondog
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "arrow_common.h"
|
|
11
|
+
#include "hikyuu/Stock.h"
|
|
12
|
+
#include "hikyuu/indicator/Indicator.h"
|
|
13
|
+
#include "hikyuu/trade_manage/PositionRecord.h"
|
|
14
|
+
#include "hikyuu/trade_manage/TradeRecord.h"
|
|
15
|
+
|
|
16
|
+
namespace hku {
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @ingroup Views
|
|
20
|
+
* @{
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
//-----------------------------------------------------------
|
|
24
|
+
// arrow错误时抛出异常, 其他情况仅可能返回为空表, 而不是空指针
|
|
25
|
+
//-----------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 获取指定股票集合在指定交易日的行情数据,不包含当日停牌无数据的股票
|
|
29
|
+
* @param stks 股票列表
|
|
30
|
+
* @param date 交易日
|
|
31
|
+
* @param market 市场代码(用于获取交易日历)
|
|
32
|
+
* @return
|
|
33
|
+
*/
|
|
34
|
+
std::shared_ptr<arrow::Table> HKU_API getMarketView(const StockList& stks, const Datetime& date,
|
|
35
|
+
const string& market = "SH");
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 获取指定股票集合在最后交易日的行情数据,不包含当日停牌无数据的股票。如自动接收行情数据,则为实时行情数据
|
|
39
|
+
* @param stks 股票列表
|
|
40
|
+
* @param market 市场代码(用于获取交易日历)
|
|
41
|
+
* @return
|
|
42
|
+
*/
|
|
43
|
+
std::shared_ptr<arrow::Table> HKU_API getMarketView(const StockList& stks,
|
|
44
|
+
const string& market = "SH");
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* 计算指定证券列表的各指标结果,以 arrow table 形式返回
|
|
48
|
+
* @param stks 指定证券列表
|
|
49
|
+
* @param inds 指定指标列表
|
|
50
|
+
* @param query 查询条件
|
|
51
|
+
* @param market 指定行情市场(用于日期对齐)
|
|
52
|
+
* @return * arrow::Result<std::shared_ptr<arrow::Table>>
|
|
53
|
+
*/
|
|
54
|
+
std::shared_ptr<arrow::Table> HKU_API getIndicatorsView(const StockList& stks,
|
|
55
|
+
const IndicatorList& inds,
|
|
56
|
+
const KQuery& query,
|
|
57
|
+
const string& market = "SH");
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 获取指定日期的各指定证券的各指标视图
|
|
61
|
+
* @param stks 证券列表
|
|
62
|
+
* @param inds 指标列表
|
|
63
|
+
* @param date 指定日期
|
|
64
|
+
* @param cal_len 计算需要的数据长度
|
|
65
|
+
* @param ktype k线类型
|
|
66
|
+
* @param market 指定行情市场(用于日期对齐)
|
|
67
|
+
* @return arrow::Result<std::shared_ptr<arrow::Table>>
|
|
68
|
+
*/
|
|
69
|
+
std::shared_ptr<arrow::Table> HKU_API getIndicatorsView(const StockList& stks,
|
|
70
|
+
const IndicatorList& inds,
|
|
71
|
+
const Datetime& date, size_t cal_len = 100,
|
|
72
|
+
const KQuery::KType& ktype = KQuery::DAY,
|
|
73
|
+
const string& market = "SH");
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Indicator转换为 Arrow Table,包含时间序列,则带有时间列,否则无时间列
|
|
77
|
+
* @param ind Indicator
|
|
78
|
+
* @return arrow::Result<std::shared_ptr<arrow::Table>>
|
|
79
|
+
*/
|
|
80
|
+
std::shared_ptr<arrow::Table> HKU_API getIndicatorView(const Indicator& ind);
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Indicator转换为 Arrow Table,仅包含值,不包含时间序列
|
|
84
|
+
* @return arrow::Result<std::shared_ptr<arrow::Table>>
|
|
85
|
+
*/
|
|
86
|
+
std::shared_ptr<arrow::Table> HKU_API getIndicatorValueView(const Indicator& ind);
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* KData 转换至 arrow table
|
|
90
|
+
* @return arrow::Result<std::shared_ptr<arrow::Table>>
|
|
91
|
+
*/
|
|
92
|
+
std::shared_ptr<arrow::Table> HKU_API getKDataView(const KData& kdata);
|
|
93
|
+
|
|
94
|
+
/** KRecordList 转换至 arrow table */
|
|
95
|
+
std::shared_ptr<arrow::Table> HKU_API getKRecordListView(const KRecordList& ks);
|
|
96
|
+
|
|
97
|
+
/** TimeLineList 转换至 arrow table */
|
|
98
|
+
std::shared_ptr<arrow::Table> HKU_API getTimeLineListView(const TimeLineList& ts);
|
|
99
|
+
|
|
100
|
+
/** TransRecordList 转换至 arrow table */
|
|
101
|
+
std::shared_ptr<arrow::Table> HKU_API getTransRecordListView(const TransRecordList& ts);
|
|
102
|
+
|
|
103
|
+
/** StockWeightList 转换至 arrow table */
|
|
104
|
+
std::shared_ptr<arrow::Table> HKU_API getStockWeightListView(const StockWeightList& sws);
|
|
105
|
+
|
|
106
|
+
/** DatetimeList 转换至 arrow table */
|
|
107
|
+
std::shared_ptr<arrow::Table> HKU_API getDatetimeListView(const DatetimeList& dates);
|
|
108
|
+
|
|
109
|
+
/** TradeRecordList 转换至 arrow table */
|
|
110
|
+
std::shared_ptr<arrow::Table> HKU_API getTradeRecordListView(const TradeRecordList& trades);
|
|
111
|
+
|
|
112
|
+
/** PositionList 转换至 arrow table */
|
|
113
|
+
std::shared_ptr<arrow::Table> HKU_API
|
|
114
|
+
getPositionRecordListView(const PositionRecordList& positions);
|
|
115
|
+
|
|
116
|
+
/** @} */
|
|
117
|
+
} // namespace hku
|
hikyuu/indicator/indicator.py
CHANGED
|
@@ -29,12 +29,11 @@ from hikyuu import Datetime
|
|
|
29
29
|
import pandas as pd
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return pd.DataFrame.from_records(indicator.to_np())
|
|
32
|
+
Indicator.to_numpy = Indicator.to_np
|
|
33
|
+
Indicator.to_pandas = Indicator.to_df
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
Indicator.
|
|
35
|
+
Indicator.value_to_numpy = Indicator.value_to_np
|
|
36
|
+
Indicator.value_to_pandas = Indicator.value_to_df
|
|
38
37
|
|
|
39
38
|
|
|
40
39
|
def concat_to_df(dates, ind_list, head_stock_code=True, head_ind_name=False):
|
hikyuu/plugin/backtest.dll
CHANGED
|
Binary file
|
|
Binary file
|
hikyuu/plugin/dataserver.dll
CHANGED
|
Binary file
|
hikyuu/plugin/device.dll
CHANGED
|
Binary file
|
hikyuu/plugin/extind.dll
CHANGED
|
Binary file
|
hikyuu/plugin/hkuextra.dll
CHANGED
|
Binary file
|
hikyuu/plugin/import2hdf5.dll
CHANGED
|
Binary file
|
hikyuu/plugin/tmreport.dll
CHANGED
|
Binary file
|
|
@@ -11,7 +11,7 @@ from hikyuu import *
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def on_change(stg: Strategy, stk: Stock, spot: SpotRecord):
|
|
14
|
-
print("[on_change]:", stk.market_code, stk.name, spot.close, spot.
|
|
14
|
+
print("[on_change]:", stk.market_code, stk.name, spot.close, spot.bid[0], spot.ask[0])
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
def on_spot(stg: Strategy, rev_time: Datetime):
|
hikyuu/test/test_init.py
CHANGED
|
@@ -2,44 +2,44 @@
|
|
|
2
2
|
# -*- coding: utf8 -*-
|
|
3
3
|
# cp936
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# ===============================================================================
|
|
6
6
|
# 作者:fasiondog
|
|
7
7
|
# 历史:1)20130128, Added by fasiondog
|
|
8
|
-
|
|
8
|
+
# ===============================================================================
|
|
9
9
|
from hikyuu import *
|
|
10
10
|
from configparser import ConfigParser
|
|
11
11
|
from functools import lru_cache
|
|
12
12
|
|
|
13
13
|
import os
|
|
14
|
-
#curdir = os.path.dirname(os.path.realpath(__file__))
|
|
15
|
-
#head, tail = os.path.split(curdir)
|
|
16
|
-
#head, tail = os.path.split(head)
|
|
17
|
-
#head, tail = os.path.split(head)
|
|
14
|
+
# curdir = os.path.dirname(os.path.realpath(__file__))
|
|
15
|
+
# head, tail = os.path.split(curdir)
|
|
16
|
+
# head, tail = os.path.split(head)
|
|
17
|
+
# head, tail = os.path.split(head)
|
|
18
18
|
|
|
19
19
|
import sys
|
|
20
20
|
if sys.platform == 'win32':
|
|
21
|
-
#config_file = os.path.join(head, "test_data/hikyuu_win.ini")
|
|
21
|
+
# config_file = os.path.join(head, "test_data/hikyuu_win.ini")
|
|
22
22
|
config_file = "test_data/hikyuu_win.ini"
|
|
23
23
|
else:
|
|
24
|
-
#config_file = os.path.join(head, "test_data/hikyuu_linux.ini")
|
|
24
|
+
# config_file = os.path.join(head, "test_data/hikyuu_linux.ini")
|
|
25
25
|
config_file = "test_data/hikyuu_linux.ini"
|
|
26
|
-
#print(config_file)
|
|
26
|
+
# print(config_file)
|
|
27
27
|
|
|
28
|
-
#tmp_dir = os.path.join(head, "test/data/tmp")
|
|
28
|
+
# tmp_dir = os.path.join(head, "test/data/tmp")
|
|
29
29
|
tmp_dir = "test_data/tmp"
|
|
30
30
|
if not os.path.lexists(tmp_dir):
|
|
31
31
|
os.mkdir(tmp_dir)
|
|
32
32
|
|
|
33
|
-
#starttime = time.time()
|
|
34
|
-
#print "Loading Day Data ..."
|
|
33
|
+
# starttime = time.time()
|
|
34
|
+
# print "Loading Day Data ..."
|
|
35
35
|
hikyuu_init(config_file)
|
|
36
36
|
sm = StockManager.instance()
|
|
37
|
-
#endtime = time.time()
|
|
38
|
-
#print "%.2fs" % (endtime-starttime)
|
|
37
|
+
# endtime = time.time()
|
|
38
|
+
# print "%.2fs" % (endtime-starttime)
|
|
39
39
|
|
|
40
40
|
# 仅在模块加载时读取一次配置
|
|
41
41
|
_config = ConfigParser()
|
|
42
|
-
_config.read(config_file)
|
|
42
|
+
_config.read(config_file, encoding='utf-8')
|
|
43
43
|
_tdx_dir = _config.get('tdx', 'dir', fallback='/mnt/tdx')
|
|
44
44
|
|
|
45
45
|
|
|
@@ -47,17 +47,17 @@ _tdx_dir = _config.get('tdx', 'dir', fallback='/mnt/tdx')
|
|
|
47
47
|
def get_real_tdx_filepath(code, market='sh'):
|
|
48
48
|
"""
|
|
49
49
|
获取真实的通达信.day文件路径。
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
该函数按以下顺序确定文件路径:
|
|
52
52
|
1. 检查环境变量 `HKU_real_tdx_file_path` 是否被设置。
|
|
53
53
|
2. 如果未设置, 则检查配置文件中 "tdx"->"dir" 指定的路径。
|
|
54
54
|
3. 如果未配置, 则使用 /mnt/tdx/vipdoc/。
|
|
55
55
|
4. 如果上述路径不存在, 则检查 test_data/vipdoc/ 是否存在, 如果存在, 则使用该路径。
|
|
56
56
|
5. 如果上述路径都不存在, 则自动回退到在项目根目录下的 `test_data` 文件夹中寻找同名文件作为备用。
|
|
57
|
-
|
|
57
|
+
|
|
58
58
|
这使得测试既能适应有权访问生产数据环境的开发者, 也能让其他贡献者使用
|
|
59
59
|
项目内提供的样本数据来运行测试, 避免了因路径问题导致的测试挂起或失败。
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
:param str code: 股票代码 (如 '600000', '000001')
|
|
62
62
|
:param str market: 市场简称 (如 'sh', 'sz')
|
|
63
63
|
:return: 最终确定的文件路径 (可能不存在, 由调用方处理)
|
|
@@ -92,4 +92,4 @@ def get_real_tdx_filepath(code, market='sh'):
|
|
|
92
92
|
test_data_dir = os.path.join(project_root, 'test_data')
|
|
93
93
|
fallback_path = os.path.join(test_data_dir, filename)
|
|
94
94
|
print(f"get_real_tdx_filepath return: {fallback_path}")
|
|
95
|
-
return fallback_path
|
|
95
|
+
return fallback_path
|
hikyuu/trade_manage/__init__.pyi
CHANGED
|
@@ -78,6 +78,17 @@ from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 impor
|
|
|
78
78
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AF_FixedWeight
|
|
79
79
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AF_FixedWeightList
|
|
80
80
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AF_MultiFactor
|
|
81
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_COUNT
|
|
82
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_MAD
|
|
83
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_MAX
|
|
84
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_MEAN
|
|
85
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_MEDIAN
|
|
86
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_MIN
|
|
87
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_PROD
|
|
88
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_QUANTILE
|
|
89
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_STD
|
|
90
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_SUM
|
|
91
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AGG_VAR
|
|
81
92
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import ALIGN
|
|
82
93
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import AMA
|
|
83
94
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import ASIN
|
|
@@ -159,10 +170,10 @@ from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 impor
|
|
|
159
170
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import KALMAN
|
|
160
171
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import KDATA_PART
|
|
161
172
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import LAST
|
|
162
|
-
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import LASTVALUE as CONST
|
|
163
173
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import LASTVALUE
|
|
164
|
-
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import
|
|
174
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import LASTVALUE as CONST
|
|
165
175
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import LIUTONGPAN
|
|
176
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import LIUTONGPAN as CAPITAL
|
|
166
177
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import LLV
|
|
167
178
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import LLVBARS
|
|
168
179
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import LN
|
|
@@ -210,6 +221,7 @@ from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 impor
|
|
|
210
221
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import RECOVER_EQUAL_FORWARD
|
|
211
222
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import RECOVER_FORWARD
|
|
212
223
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import REF
|
|
224
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import REFX
|
|
213
225
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import REPLACE
|
|
214
226
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import RESULT
|
|
215
227
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import REVERSE
|
|
@@ -481,6 +493,7 @@ from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 impor
|
|
|
481
493
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import crt_pf_strategy
|
|
482
494
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import crt_sys_strategy
|
|
483
495
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import dates_to_np
|
|
496
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import dates_to_pa
|
|
484
497
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import df_to_krecords
|
|
485
498
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import fetch_trial_license
|
|
486
499
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import find_optimal_system
|
|
@@ -489,10 +502,13 @@ from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 impor
|
|
|
489
502
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_business_name
|
|
490
503
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_data_from_buffer_server
|
|
491
504
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_date_range
|
|
505
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_inds_view
|
|
506
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_inds_view_pyarrow
|
|
492
507
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_kdata
|
|
493
508
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_last_version
|
|
494
509
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_log_level
|
|
495
510
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_market_view
|
|
511
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_market_view_pyarrow
|
|
496
512
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_spot_from_buffer_server
|
|
497
513
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_stock
|
|
498
514
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import get_system_part_enum
|
|
@@ -509,10 +525,12 @@ from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 impor
|
|
|
509
525
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import isnan
|
|
510
526
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import krecords_to_df
|
|
511
527
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import krecords_to_np
|
|
528
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import krecords_to_pa
|
|
512
529
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import open_ostream_to_python
|
|
513
530
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import open_spend_time
|
|
514
531
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import positions_to_df
|
|
515
532
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import positions_to_np
|
|
533
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import positions_to_pa
|
|
516
534
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import register_extra_ktype
|
|
517
535
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import release_extra_ktype
|
|
518
536
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import remove_license
|
|
@@ -525,6 +543,8 @@ from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 impor
|
|
|
525
543
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import set_log_level
|
|
526
544
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import set_python_in_interactive
|
|
527
545
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import set_python_in_jupyter
|
|
546
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import spot_agent_is_connected
|
|
547
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import spot_agent_is_running
|
|
528
548
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import start_data_server
|
|
529
549
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import start_spot_agent
|
|
530
550
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import stop_data_server
|
|
@@ -533,14 +553,18 @@ from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 impor
|
|
|
533
553
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import systemweights_to_np
|
|
534
554
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import timeline_to_df
|
|
535
555
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import timeline_to_np
|
|
556
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import timeline_to_pa
|
|
536
557
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import toPriceList
|
|
537
558
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import trades_to_df
|
|
538
559
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import trades_to_np
|
|
560
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import trades_to_pa
|
|
539
561
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import translist_to_df
|
|
540
562
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import translist_to_np
|
|
563
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import translist_to_pa
|
|
541
564
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import view_license
|
|
542
565
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import weights_to_df
|
|
543
566
|
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import weights_to_np
|
|
567
|
+
from hikyuu.cpp.core39.pybind11_detail_function_record_v1_msvc_md_mscver19 import weights_to_pa
|
|
544
568
|
from hikyuu import extend
|
|
545
569
|
from hikyuu.extend import DatetimeList_to_df
|
|
546
570
|
from hikyuu.extend import DatetimeList_to_np
|
|
@@ -555,7 +579,6 @@ from hikyuu.extend import new_Query_init
|
|
|
555
579
|
from hikyuu.indicator import indicator
|
|
556
580
|
from hikyuu.indicator.indicator import concat_to_df
|
|
557
581
|
from hikyuu.indicator.indicator import df_to_ind
|
|
558
|
-
from hikyuu.indicator.indicator import indicator_to_df
|
|
559
582
|
from hikyuu.indicator import pyind
|
|
560
583
|
from hikyuu.indicator.pyind import KDJ
|
|
561
584
|
from hikyuu.trade_manage.broker import OrderBrokerWrap
|
|
@@ -579,8 +602,8 @@ from hikyuu.util.mylog import class_logger
|
|
|
579
602
|
from hikyuu.util.mylog import hku_benchmark
|
|
580
603
|
from hikyuu.util.mylog import hku_debug as hku_trace
|
|
581
604
|
from hikyuu.util.mylog import hku_debug
|
|
582
|
-
from hikyuu.util.mylog import hku_debug_if as hku_trace_if
|
|
583
605
|
from hikyuu.util.mylog import hku_debug_if
|
|
606
|
+
from hikyuu.util.mylog import hku_debug_if as hku_trace_if
|
|
584
607
|
from hikyuu.util.mylog import hku_error
|
|
585
608
|
from hikyuu.util.mylog import hku_error_if
|
|
586
609
|
from hikyuu.util.mylog import hku_fatal
|
|
@@ -596,19 +619,21 @@ from hikyuu.util.notebook import in_interactive_session
|
|
|
596
619
|
from hikyuu.util.notebook import in_ipython_frontend
|
|
597
620
|
from hikyuu.util.timeout import timeout
|
|
598
621
|
import io as io
|
|
622
|
+
import locale as locale
|
|
599
623
|
import logging
|
|
600
624
|
import numpy as np
|
|
601
625
|
import os as os
|
|
602
626
|
import pandas as pd
|
|
603
627
|
from pathlib import Path
|
|
604
628
|
import pickle as pickle
|
|
629
|
+
import pyarrow as pa
|
|
605
630
|
import sys as sys
|
|
606
631
|
import traceback as traceback
|
|
607
632
|
from . import broker
|
|
608
633
|
from . import broker_easytrader
|
|
609
634
|
from . import broker_mail
|
|
610
635
|
from . import trade
|
|
611
|
-
__all__ = ['ABS', 'ACOS', 'AD', 'ADVANCE', 'AF_EqualWeight', 'AF_FixedWeight', 'AF_FixedWeightList', 'AF_MultiFactor', 'ALIGN', 'AMA', 'AMO', 'ASIN', 'ATAN', 'ATR', 'AVEDEV', 'AllocateFundsBase', 'BACKSET', 'BARSCOUNT', 'BARSLAST', 'BARSLASTCOUNT', 'BARSSINCE', 'BARSSINCEN', 'BASE_DIR', 'BETWEEN', 'BLOCKSETNUM', 'BUSINESS', 'Block', 'BlockInfoDriver', 'BorrowRecord', 'BrokerPositionRecord', 'CAPITAL', 'CEILING', 'CLOSE', 'CN_Bool', 'CN_OPLine', 'CONST', 'CONTEXT', 'CONTEXT_K', 'CORR', 'COS', 'COST', 'COUNT', 'CROSS', 'CVAL', 'CYCLE', 'C_AMO', 'C_CLOSE', 'C_HIGH', 'C_KDATA', 'C_LOW', 'C_OPEN', 'C_VOL', 'ConditionBase', 'Constant', 'CostRecord', 'DATE', 'DAY', 'DEBUG', 'DECLINE', 'DEVSQ', 'DIFF', 'DISCARD', 'DMA', 'DOWNNDAY', 'DROPNA', 'DataDriverFactory', 'Datetime', 'DatetimeList', 'DatetimeList_to_df', 'DatetimeList_to_np', 'Datetime_date', 'Datetime_datetime', 'Days', 'EMA', 'ERROR', 'EVERY', 'EV_Bool', 'EV_TwoLine', 'EXIST', 'EXP', 'EasyTraderOrderBroker', 'EnvironmentBase', 'FATAL', 'FILTER', 'FINANCE', 'FLOOR', 'FundsRecord', 'HHV', 'HHVBARS', 'HIGH', 'HKUCheckError', 'HKUException', 'HOUR', 'HSL', 'Hours', 'IC', 'ICIR', 'IF', 'INBLOCK', 'INDEXA', 'INDEXADV', 'INDEXC', 'INDEXDEC', 'INDEXH', 'INDEXL', 'INDEXO', 'INDEXV', 'INFO', 'INSUM', 'INTPART', 'IR', 'ISINF', 'ISINFA', 'ISLASTBAR', 'ISNA', 'IndParam', 'Indicator', 'IndicatorImp', 'JUMPDOWN', 'JUMPUP', 'KALMAN', 'KDATA', 'KDATA_PART', 'KDJ', 'KData', 'KDataDriver', 'KDataToHdf5Importer', 'KRecord', 'KRecordList', 'LAST', 'LASTVALUE', 'LIUTONGPAN', 'LLV', 'LLVBARS', 'LN', 'LOG', 'LOG_LEVEL', 'LONGCROSS', 'LOW', 'LoanRecord', 'LoggingContext', 'MA', 'MACD', 'MAX', 'MDD', 'MF_EqualWeight', 'MF_ICIRWeight', 'MF_ICWeight', 'MF_Weight', 'MIN', 'MINUTE', 'MM_FixedCapital', 'MM_FixedCapitalFunds', 'MM_FixedCount', 'MM_FixedCountTps', 'MM_FixedPercent', 'MM_FixedRisk', 'MM_FixedUnits', 'MM_Nothing', 'MM_WilliamsFixedRisk', 'MOD', 'MONTH', 'MRR', 'MailOrderBroker', 'MarketInfo', 'Microseconds', 'Milliseconds', 'Minutes', 'MoneyManagerBase', 'MultiFactorBase', 'NDAY', 'NOT', 'OFF', 'OPEN', 'OrderBrokerBase', 'OrderBrokerWrap', 'PF_Simple', 'PF_WithoutAF', 'PG_FixedHoldDays', 'PG_FixedPercent', 'PG_NoGoal', 'POS', 'POW', 'PRICELIST', 'Parameter', 'Parameter_items', 'Parameter_iter', 'Parameter_keys', 'Parameter_to_dict', 'Path', 'Performance', 'Performance_to_df', 'Portfolio', 'PositionRecord', 'PositionRecordList', 'ProfitGoalBase', 'Query', 'RANK', 'RECOVER_BACKWARD', 'RECOVER_EQUAL_BACKWARD', 'RECOVER_EQUAL_FORWARD', 'RECOVER_FORWARD', 'REF', 'REPLACE', 'RESULT', 'REVERSE', 'ROC', 'ROCP', 'ROCR', 'ROCR100', 'ROUND', 'ROUNDDOWN', 'ROUNDUP', 'RSI', 'SAFTYLOSS', 'SE_EvaluateOptimal', 'SE_Fixed', 'SE_MaxFundsOptimal', 'SE_MultiFactor', 'SE_PerformanceOptimal', 'SE_Signal', 'SGN', 'SG_Add', 'SG_AllwaysBuy', 'SG_And', 'SG_Band', 'SG_Bool', 'SG_Buy', 'SG_Cross', 'SG_CrossGold', 'SG_Cycle', 'SG_Div', 'SG_Flex', 'SG_Mul', 'SG_OneSide', 'SG_Or', 'SG_Sell', 'SG_Single', 'SG_Single2', 'SG_Sub', 'SIN', 'SLICE', 'SLOPE', 'SMA', 'SPEARMAN', 'SP_FixedPercent', 'SP_FixedValue', 'SQRT', 'STD', 'STDEV', 'STDP', 'ST_FixedPercent', 'ST_Indicator', 'ST_Saftyloss', 'SUM', 'SUMBARS', 'SYS_Simple', 'SYS_WalkForward', 'ScoreRecord', 'ScoreRecordList', 'Seconds', 'SelectorBase', 'SignalBase', 'SlippageBase', 'SpotRecord', 'Stock', 'StockManager', 'StockTypeInfo', 'StockWeight', 'StockWeightList', 'StoplossBase', 'Strategy', 'StrategyContext', 'System', 'SystemPart', 'SystemWeight', 'SystemWeightList', 'TAN', 'TA_ACCBANDS', 'TA_ACOS', 'TA_AD', 'TA_ADD', 'TA_ADOSC', 'TA_ADX', 'TA_ADXR', 'TA_APO', 'TA_AROON', 'TA_AROONOSC', 'TA_ASIN', 'TA_ATAN', 'TA_ATR', 'TA_AVGDEV', 'TA_AVGPRICE', 'TA_BBANDS', 'TA_BETA', 'TA_BOP', 'TA_CCI', 'TA_CDL2CROWS', 'TA_CDL3BLACKCROWS', 'TA_CDL3INSIDE', 'TA_CDL3LINESTRIKE', 'TA_CDL3OUTSIDE', 'TA_CDL3STARSINSOUTH', 'TA_CDL3WHITESOLDIERS', 'TA_CDLABANDONEDBABY', 'TA_CDLADVANCEBLOCK', 'TA_CDLBELTHOLD', 'TA_CDLBREAKAWAY', 'TA_CDLCLOSINGMARUBOZU', 'TA_CDLCONCEALBABYSWALL', 'TA_CDLCOUNTERATTACK', 'TA_CDLDARKCLOUDCOVER', 'TA_CDLDOJI', 'TA_CDLDOJISTAR', 'TA_CDLDRAGONFLYDOJI', 'TA_CDLENGULFING', 'TA_CDLEVENINGDOJISTAR', 'TA_CDLEVENINGSTAR', 'TA_CDLGAPSIDESIDEWHITE', 'TA_CDLGRAVESTONEDOJI', 'TA_CDLHAMMER', 'TA_CDLHANGINGMAN', 'TA_CDLHARAMI', 'TA_CDLHARAMICROSS', 'TA_CDLHIGHWAVE', 'TA_CDLHIKKAKE', 'TA_CDLHIKKAKEMOD', 'TA_CDLHOMINGPIGEON', 'TA_CDLIDENTICAL3CROWS', 'TA_CDLINNECK', 'TA_CDLINVERTEDHAMMER', 'TA_CDLKICKING', 'TA_CDLKICKINGBYLENGTH', 'TA_CDLLADDERBOTTOM', 'TA_CDLLONGLEGGEDDOJI', 'TA_CDLLONGLINE', 'TA_CDLMARUBOZU', 'TA_CDLMATCHINGLOW', 'TA_CDLMATHOLD', 'TA_CDLMORNINGDOJISTAR', 'TA_CDLMORNINGSTAR', 'TA_CDLONNECK', 'TA_CDLPIERCING', 'TA_CDLRICKSHAWMAN', 'TA_CDLRISEFALL3METHODS', 'TA_CDLSEPARATINGLINES', 'TA_CDLSHOOTINGSTAR', 'TA_CDLSHORTLINE', 'TA_CDLSPINNINGTOP', 'TA_CDLSTALLEDPATTERN', 'TA_CDLSTICKSANDWICH', 'TA_CDLTAKURI', 'TA_CDLTASUKIGAP', 'TA_CDLTHRUSTING', 'TA_CDLTRISTAR', 'TA_CDLUNIQUE3RIVER', 'TA_CDLUPSIDEGAP2CROWS', 'TA_CDLXSIDEGAP3METHODS', 'TA_CEIL', 'TA_CMO', 'TA_CORREL', 'TA_COS', 'TA_COSH', 'TA_DEMA', 'TA_DIV', 'TA_DX', 'TA_EMA', 'TA_EXP', 'TA_FLOOR', 'TA_HT_DCPERIOD', 'TA_HT_DCPHASE', 'TA_HT_PHASOR', 'TA_HT_SINE', 'TA_HT_TRENDLINE', 'TA_HT_TRENDMODE', 'TA_IMI', 'TA_KAMA', 'TA_LINEARREG', 'TA_LINEARREG_ANGLE', 'TA_LINEARREG_INTERCEPT', 'TA_LINEARREG_SLOPE', 'TA_LN', 'TA_LOG10', 'TA_MA', 'TA_MACD', 'TA_MACDEXT', 'TA_MACDFIX', 'TA_MAMA', 'TA_MAVP', 'TA_MAX', 'TA_MAXINDEX', 'TA_MEDPRICE', 'TA_MFI', 'TA_MIDPOINT', 'TA_MIDPRICE', 'TA_MIN', 'TA_MININDEX', 'TA_MINMAX', 'TA_MINMAXINDEX', 'TA_MINUS_DI', 'TA_MINUS_DM', 'TA_MOM', 'TA_MULT', 'TA_NATR', 'TA_OBV', 'TA_PLUS_DI', 'TA_PLUS_DM', 'TA_PPO', 'TA_ROC', 'TA_ROCP', 'TA_ROCR', 'TA_ROCR100', 'TA_RSI', 'TA_SAR', 'TA_SAREXT', 'TA_SIN', 'TA_SINH', 'TA_SMA', 'TA_SQRT', 'TA_STDDEV', 'TA_STOCH', 'TA_STOCHF', 'TA_STOCHRSI', 'TA_SUB', 'TA_SUM', 'TA_T3', 'TA_TAN', 'TA_TANH', 'TA_TEMA', 'TA_TRANGE', 'TA_TRIMA', 'TA_TRIX', 'TA_TSF', 'TA_TYPPRICE', 'TA_ULTOSC', 'TA_VAR', 'TA_WCLPRICE', 'TA_WILLR', 'TA_WMA', 'TC_FixedA', 'TC_FixedA2015', 'TC_FixedA2017', 'TC_TestStub', 'TC_Zero', 'TIME', 'TIMELINE', 'TIMELINEVOL', 'TR', 'TRACE', 'TURNOVER', 'TestOrderBroker', 'TimeDelta', 'TimeDelta_timedelta', 'TimeLineList', 'TimeLineRecord', 'TradeCostBase', 'TradeManager', 'TradeRecord', 'TradeRecordList', 'TradeRequest', 'TransList', 'TransRecord', 'UPNDAY', 'UTCOffset', 'VALUE', 'VAR', 'VARP', 'VIGOR', 'VOL', 'WARN', 'WEAVE', 'WEEK', 'WINNER', 'WITHDAY', 'WITHHALFYEAR', 'WITHHOUR', 'WITHHOUR2', 'WITHHOUR4', 'WITHKTYPE', 'WITHMIN', 'WITHMIN15', 'WITHMIN30', 'WITHMIN5', 'WITHMIN60', 'WITHMONTH', 'WITHQUARTER', 'WITHWEEK', 'WITHYEAR', 'WMA', 'YEAR', 'ZHBOND10', 'ZONGGUBEN', 'ZSCORE', 'active_device', 'add_class_logger_handler', 'atexit', 'backtest', 'batch_calculate_inds', 'broker', 'broker_easytrader', 'broker_mail', 'can_upgrade', 'capture_multiprocess_all_logger', 'class_logger', 'close_ostream_to_python', 'close_spend_time', 'combinate_ind', 'combinate_index', 'concat_to_df', 'constant', 'core', 'cpp', 'crtBrokerTM', 'crtOB', 'crtSEOptimal', 'crtTM', 'crt_pf_strategy', 'crt_sys_strategy', 'current_path', 'date', 'dates_to_np', 'datetime', 'df_to_ind', 'df_to_krecords', 'dll_directory', 'extend', 'fetch_trial_license', 'find_optimal_system', 'find_optimal_system_multi', 'get_block', 'get_business_name', 'get_data_from_buffer_server', 'get_date_range', 'get_kdata', 'get_last_version', 'get_log_level', 'get_market_view', 'get_spot_from_buffer_server', 'get_stock', 'get_system_part_enum', 'get_system_part_name', 'get_version', 'get_version_git', 'get_version_with_build', 'hikyuu_init', 'hku_benchmark', 'hku_catch', 'hku_check', 'hku_check_ignore', 'hku_check_throw', 'hku_debug', 'hku_debug_if', 'hku_error', 'hku_error_if', 'hku_fatal', 'hku_fatal_if', 'hku_info', 'hku_info_if', 'hku_logger', 'hku_run_ignore_exception', 'hku_to_async', 'hku_trace', 'hku_trace_if', 'hku_warn', 'hku_warn_if', 'in_interactive_session', 'in_ipython_frontend', 'indicator', '
|
|
636
|
+
__all__ = ['ABS', 'ACOS', 'AD', 'ADVANCE', 'AF_EqualWeight', 'AF_FixedWeight', 'AF_FixedWeightList', 'AF_MultiFactor', 'AGG_COUNT', 'AGG_MAD', 'AGG_MAX', 'AGG_MEAN', 'AGG_MEDIAN', 'AGG_MIN', 'AGG_PROD', 'AGG_QUANTILE', 'AGG_STD', 'AGG_SUM', 'AGG_VAR', 'ALIGN', 'AMA', 'AMO', 'ASIN', 'ATAN', 'ATR', 'AVEDEV', 'AllocateFundsBase', 'BACKSET', 'BARSCOUNT', 'BARSLAST', 'BARSLASTCOUNT', 'BARSSINCE', 'BARSSINCEN', 'BASE_DIR', 'BETWEEN', 'BLOCKSETNUM', 'BUSINESS', 'Block', 'BlockInfoDriver', 'BorrowRecord', 'BrokerPositionRecord', 'CAPITAL', 'CEILING', 'CLOSE', 'CN_Bool', 'CN_OPLine', 'CONST', 'CONTEXT', 'CONTEXT_K', 'CORR', 'COS', 'COST', 'COUNT', 'CROSS', 'CVAL', 'CYCLE', 'C_AMO', 'C_CLOSE', 'C_HIGH', 'C_KDATA', 'C_LOW', 'C_OPEN', 'C_VOL', 'ConditionBase', 'Constant', 'CostRecord', 'DATE', 'DAY', 'DEBUG', 'DECLINE', 'DEVSQ', 'DIFF', 'DISCARD', 'DMA', 'DOWNNDAY', 'DROPNA', 'DataDriverFactory', 'Datetime', 'DatetimeList', 'DatetimeList_to_df', 'DatetimeList_to_np', 'Datetime_date', 'Datetime_datetime', 'Days', 'EMA', 'ERROR', 'EVERY', 'EV_Bool', 'EV_TwoLine', 'EXIST', 'EXP', 'EasyTraderOrderBroker', 'EnvironmentBase', 'FATAL', 'FILTER', 'FINANCE', 'FLOOR', 'FundsRecord', 'HHV', 'HHVBARS', 'HIGH', 'HKUCheckError', 'HKUException', 'HOUR', 'HSL', 'Hours', 'IC', 'ICIR', 'IF', 'INBLOCK', 'INDEXA', 'INDEXADV', 'INDEXC', 'INDEXDEC', 'INDEXH', 'INDEXL', 'INDEXO', 'INDEXV', 'INFO', 'INSUM', 'INTPART', 'IR', 'ISINF', 'ISINFA', 'ISLASTBAR', 'ISNA', 'IndParam', 'Indicator', 'IndicatorImp', 'JUMPDOWN', 'JUMPUP', 'KALMAN', 'KDATA', 'KDATA_PART', 'KDJ', 'KData', 'KDataDriver', 'KDataToHdf5Importer', 'KRecord', 'KRecordList', 'LAST', 'LASTVALUE', 'LIUTONGPAN', 'LLV', 'LLVBARS', 'LN', 'LOG', 'LOG_LEVEL', 'LONGCROSS', 'LOW', 'LoanRecord', 'LoggingContext', 'MA', 'MACD', 'MAX', 'MDD', 'MF_EqualWeight', 'MF_ICIRWeight', 'MF_ICWeight', 'MF_Weight', 'MIN', 'MINUTE', 'MM_FixedCapital', 'MM_FixedCapitalFunds', 'MM_FixedCount', 'MM_FixedCountTps', 'MM_FixedPercent', 'MM_FixedRisk', 'MM_FixedUnits', 'MM_Nothing', 'MM_WilliamsFixedRisk', 'MOD', 'MONTH', 'MRR', 'MailOrderBroker', 'MarketInfo', 'Microseconds', 'Milliseconds', 'Minutes', 'MoneyManagerBase', 'MultiFactorBase', 'NDAY', 'NOT', 'OFF', 'OPEN', 'OrderBrokerBase', 'OrderBrokerWrap', 'PF_Simple', 'PF_WithoutAF', 'PG_FixedHoldDays', 'PG_FixedPercent', 'PG_NoGoal', 'POS', 'POW', 'PRICELIST', 'Parameter', 'Parameter_items', 'Parameter_iter', 'Parameter_keys', 'Parameter_to_dict', 'Path', 'Performance', 'Performance_to_df', 'Portfolio', 'PositionRecord', 'PositionRecordList', 'ProfitGoalBase', 'Query', 'RANK', 'RECOVER_BACKWARD', 'RECOVER_EQUAL_BACKWARD', 'RECOVER_EQUAL_FORWARD', 'RECOVER_FORWARD', 'REF', 'REFX', 'REPLACE', 'RESULT', 'REVERSE', 'ROC', 'ROCP', 'ROCR', 'ROCR100', 'ROUND', 'ROUNDDOWN', 'ROUNDUP', 'RSI', 'SAFTYLOSS', 'SE_EvaluateOptimal', 'SE_Fixed', 'SE_MaxFundsOptimal', 'SE_MultiFactor', 'SE_PerformanceOptimal', 'SE_Signal', 'SGN', 'SG_Add', 'SG_AllwaysBuy', 'SG_And', 'SG_Band', 'SG_Bool', 'SG_Buy', 'SG_Cross', 'SG_CrossGold', 'SG_Cycle', 'SG_Div', 'SG_Flex', 'SG_Mul', 'SG_OneSide', 'SG_Or', 'SG_Sell', 'SG_Single', 'SG_Single2', 'SG_Sub', 'SIN', 'SLICE', 'SLOPE', 'SMA', 'SPEARMAN', 'SP_FixedPercent', 'SP_FixedValue', 'SQRT', 'STD', 'STDEV', 'STDP', 'ST_FixedPercent', 'ST_Indicator', 'ST_Saftyloss', 'SUM', 'SUMBARS', 'SYS_Simple', 'SYS_WalkForward', 'ScoreRecord', 'ScoreRecordList', 'Seconds', 'SelectorBase', 'SignalBase', 'SlippageBase', 'SpotRecord', 'Stock', 'StockManager', 'StockTypeInfo', 'StockWeight', 'StockWeightList', 'StoplossBase', 'Strategy', 'StrategyContext', 'System', 'SystemPart', 'SystemWeight', 'SystemWeightList', 'TAN', 'TA_ACCBANDS', 'TA_ACOS', 'TA_AD', 'TA_ADD', 'TA_ADOSC', 'TA_ADX', 'TA_ADXR', 'TA_APO', 'TA_AROON', 'TA_AROONOSC', 'TA_ASIN', 'TA_ATAN', 'TA_ATR', 'TA_AVGDEV', 'TA_AVGPRICE', 'TA_BBANDS', 'TA_BETA', 'TA_BOP', 'TA_CCI', 'TA_CDL2CROWS', 'TA_CDL3BLACKCROWS', 'TA_CDL3INSIDE', 'TA_CDL3LINESTRIKE', 'TA_CDL3OUTSIDE', 'TA_CDL3STARSINSOUTH', 'TA_CDL3WHITESOLDIERS', 'TA_CDLABANDONEDBABY', 'TA_CDLADVANCEBLOCK', 'TA_CDLBELTHOLD', 'TA_CDLBREAKAWAY', 'TA_CDLCLOSINGMARUBOZU', 'TA_CDLCONCEALBABYSWALL', 'TA_CDLCOUNTERATTACK', 'TA_CDLDARKCLOUDCOVER', 'TA_CDLDOJI', 'TA_CDLDOJISTAR', 'TA_CDLDRAGONFLYDOJI', 'TA_CDLENGULFING', 'TA_CDLEVENINGDOJISTAR', 'TA_CDLEVENINGSTAR', 'TA_CDLGAPSIDESIDEWHITE', 'TA_CDLGRAVESTONEDOJI', 'TA_CDLHAMMER', 'TA_CDLHANGINGMAN', 'TA_CDLHARAMI', 'TA_CDLHARAMICROSS', 'TA_CDLHIGHWAVE', 'TA_CDLHIKKAKE', 'TA_CDLHIKKAKEMOD', 'TA_CDLHOMINGPIGEON', 'TA_CDLIDENTICAL3CROWS', 'TA_CDLINNECK', 'TA_CDLINVERTEDHAMMER', 'TA_CDLKICKING', 'TA_CDLKICKINGBYLENGTH', 'TA_CDLLADDERBOTTOM', 'TA_CDLLONGLEGGEDDOJI', 'TA_CDLLONGLINE', 'TA_CDLMARUBOZU', 'TA_CDLMATCHINGLOW', 'TA_CDLMATHOLD', 'TA_CDLMORNINGDOJISTAR', 'TA_CDLMORNINGSTAR', 'TA_CDLONNECK', 'TA_CDLPIERCING', 'TA_CDLRICKSHAWMAN', 'TA_CDLRISEFALL3METHODS', 'TA_CDLSEPARATINGLINES', 'TA_CDLSHOOTINGSTAR', 'TA_CDLSHORTLINE', 'TA_CDLSPINNINGTOP', 'TA_CDLSTALLEDPATTERN', 'TA_CDLSTICKSANDWICH', 'TA_CDLTAKURI', 'TA_CDLTASUKIGAP', 'TA_CDLTHRUSTING', 'TA_CDLTRISTAR', 'TA_CDLUNIQUE3RIVER', 'TA_CDLUPSIDEGAP2CROWS', 'TA_CDLXSIDEGAP3METHODS', 'TA_CEIL', 'TA_CMO', 'TA_CORREL', 'TA_COS', 'TA_COSH', 'TA_DEMA', 'TA_DIV', 'TA_DX', 'TA_EMA', 'TA_EXP', 'TA_FLOOR', 'TA_HT_DCPERIOD', 'TA_HT_DCPHASE', 'TA_HT_PHASOR', 'TA_HT_SINE', 'TA_HT_TRENDLINE', 'TA_HT_TRENDMODE', 'TA_IMI', 'TA_KAMA', 'TA_LINEARREG', 'TA_LINEARREG_ANGLE', 'TA_LINEARREG_INTERCEPT', 'TA_LINEARREG_SLOPE', 'TA_LN', 'TA_LOG10', 'TA_MA', 'TA_MACD', 'TA_MACDEXT', 'TA_MACDFIX', 'TA_MAMA', 'TA_MAVP', 'TA_MAX', 'TA_MAXINDEX', 'TA_MEDPRICE', 'TA_MFI', 'TA_MIDPOINT', 'TA_MIDPRICE', 'TA_MIN', 'TA_MININDEX', 'TA_MINMAX', 'TA_MINMAXINDEX', 'TA_MINUS_DI', 'TA_MINUS_DM', 'TA_MOM', 'TA_MULT', 'TA_NATR', 'TA_OBV', 'TA_PLUS_DI', 'TA_PLUS_DM', 'TA_PPO', 'TA_ROC', 'TA_ROCP', 'TA_ROCR', 'TA_ROCR100', 'TA_RSI', 'TA_SAR', 'TA_SAREXT', 'TA_SIN', 'TA_SINH', 'TA_SMA', 'TA_SQRT', 'TA_STDDEV', 'TA_STOCH', 'TA_STOCHF', 'TA_STOCHRSI', 'TA_SUB', 'TA_SUM', 'TA_T3', 'TA_TAN', 'TA_TANH', 'TA_TEMA', 'TA_TRANGE', 'TA_TRIMA', 'TA_TRIX', 'TA_TSF', 'TA_TYPPRICE', 'TA_ULTOSC', 'TA_VAR', 'TA_WCLPRICE', 'TA_WILLR', 'TA_WMA', 'TC_FixedA', 'TC_FixedA2015', 'TC_FixedA2017', 'TC_TestStub', 'TC_Zero', 'TIME', 'TIMELINE', 'TIMELINEVOL', 'TR', 'TRACE', 'TURNOVER', 'TestOrderBroker', 'TimeDelta', 'TimeDelta_timedelta', 'TimeLineList', 'TimeLineRecord', 'TradeCostBase', 'TradeManager', 'TradeRecord', 'TradeRecordList', 'TradeRequest', 'TransList', 'TransRecord', 'UPNDAY', 'UTCOffset', 'VALUE', 'VAR', 'VARP', 'VIGOR', 'VOL', 'WARN', 'WEAVE', 'WEEK', 'WINNER', 'WITHDAY', 'WITHHALFYEAR', 'WITHHOUR', 'WITHHOUR2', 'WITHHOUR4', 'WITHKTYPE', 'WITHMIN', 'WITHMIN15', 'WITHMIN30', 'WITHMIN5', 'WITHMIN60', 'WITHMONTH', 'WITHQUARTER', 'WITHWEEK', 'WITHYEAR', 'WMA', 'YEAR', 'ZHBOND10', 'ZONGGUBEN', 'ZSCORE', 'active_device', 'add_class_logger_handler', 'atexit', 'backtest', 'batch_calculate_inds', 'broker', 'broker_easytrader', 'broker_mail', 'can_upgrade', 'capture_multiprocess_all_logger', 'class_logger', 'close_ostream_to_python', 'close_spend_time', 'combinate_ind', 'combinate_index', 'concat_to_df', 'constant', 'core', 'cpp', 'crtBrokerTM', 'crtOB', 'crtSEOptimal', 'crtTM', 'crt_pf_strategy', 'crt_sys_strategy', 'current_path', 'date', 'dates_to_np', 'dates_to_pa', 'datetime', 'df_to_ind', 'df_to_krecords', 'dll_directory', 'extend', 'fetch_trial_license', 'find_optimal_system', 'find_optimal_system_multi', 'get_block', 'get_business_name', 'get_data_from_buffer_server', 'get_date_range', 'get_inds_view', 'get_inds_view_pyarrow', 'get_kdata', 'get_last_version', 'get_log_level', 'get_market_view', 'get_market_view_pyarrow', 'get_spot_from_buffer_server', 'get_stock', 'get_system_part_enum', 'get_system_part_name', 'get_version', 'get_version_git', 'get_version_with_build', 'hikyuu_init', 'hku_benchmark', 'hku_catch', 'hku_check', 'hku_check_ignore', 'hku_check_throw', 'hku_debug', 'hku_debug_if', 'hku_error', 'hku_error_if', 'hku_fatal', 'hku_fatal_if', 'hku_info', 'hku_info_if', 'hku_logger', 'hku_run_ignore_exception', 'hku_to_async', 'hku_trace', 'hku_trace_if', 'hku_warn', 'hku_warn_if', 'in_interactive_session', 'in_ipython_frontend', 'indicator', 'inner_analysis_sys_list', 'inner_combinate_ind_analysis', 'inner_combinate_ind_analysis_with_block', 'io', 'is_valid_license', 'isinf', 'isnan', 'krecords_to_df', 'krecords_to_np', 'krecords_to_pa', 'locale', 'new_Query_init', 'new_path', 'np', 'old_Query_init', 'open_ostream_to_python', 'open_spend_time', 'os', 'pa', 'pd', 'pickle', 'positions_to_df', 'positions_to_np', 'positions_to_pa', 'pyind', 'register_extra_ktype', 'release_extra_ktype', 'remove_license', 'roundDown', 'roundEx', 'roundUp', 'run_in_strategy', 'scorerecords_to_df', 'scorerecords_to_np', 'set_log_level', 'set_my_logger_file', 'set_python_in_interactive', 'set_python_in_jupyter', 'spend_time', 'spot_agent_is_connected', 'spot_agent_is_running', 'start_data_server', 'start_spot_agent', 'stop_data_server', 'stop_spot_agent', 'sys', 'systemweights_to_df', 'systemweights_to_np', 'timedelta', 'timeline_to_df', 'timeline_to_np', 'timeline_to_pa', 'timeout', 'toPriceList', 'traceback', 'trade', 'trades_to_df', 'trades_to_np', 'trades_to_pa', 'translist_to_df', 'translist_to_np', 'translist_to_pa', 'util', 'view_license', 'weights_to_df', 'weights_to_np', 'weights_to_pa', 'with_trace']
|
|
612
637
|
AMO: hikyuu.cpp.core39.Indicator # value = Indicator{...
|
|
613
638
|
BASE_DIR: str = 'D:\\workspace\\hikyuu\\hikyuu'
|
|
614
639
|
CLOSE: hikyuu.cpp.core39.Indicator # value = Indicator{...
|
|
@@ -625,7 +650,7 @@ TRACE: hikyuu.cpp.core39.LOG_LEVEL # value = <LOG_LEVEL.TRACE: 0>
|
|
|
625
650
|
VOL: hikyuu.cpp.core39.Indicator # value = Indicator{...
|
|
626
651
|
WARN: hikyuu.cpp.core39.LOG_LEVEL # value = <LOG_LEVEL.WARN: 3>
|
|
627
652
|
constant: hikyuu.cpp.core39.Constant # value = <hikyuu.cpp.core39.Constant object>
|
|
628
|
-
current_path: str = 'D:\\anaconda3\\envs\\py39;D:\\anaconda3\\envs\\py39\\Library\\mingw-w64\\bin;D:\\anaconda3\\envs\\py39\\Library\\usr\\bin;D:\\anaconda3\\envs\\py39\\Library\\bin;D:\\anaconda3\\envs\\py39\\Scripts;D:\\anaconda3\\envs\\py39\\bin;D:\\anaconda3\\condabin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\libnvvp;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files\\Calibre2;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\WINDOWS\\System32\\OpenSSH;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2024.1.0;C:\\Program Files\\CMake\\bin;C:\\Program Files\\NVIDIA Corporation\\NVIDIA app\\NvDLISR;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\xmake;d:\\anaconda3;d:\\anaconda3\\Library\\mingw-w64\\bin;d:\\anaconda3\\Library\\usr\\bin;d:\\anaconda3\\Library\\bin;d:\\anaconda3\\Scripts;C:\\Qt\\6.8.0\\msvc2022_64\\bin;C:\\Users\\admin\\.cargo\\bin;C:\\Users\\admin\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\admin\\xmake;D:\\mysql-8.0.27-winx64\\bin;C:\\Program Files\\Graphviz\\bin;D:\\mongodb-win32-x86_64-windows-5.0.6\\bin;C:\\tools\\apache-maven-3.8.6\\bin;C:\\Program Files\\7-Zip;C:\\Users\\admin\\AppData\\Local\\Android\\Sdk\\platform-tools;C:\\Users\\admin\\AppData\\Local\\Microsoft\\WindowsApps;c:\\tools;C:\\Users\\admin\\go\\bin;C:\\Users\\admin\\AppData\\Roaming\\npm;C:\\Program Files\\NVDIA\\CUDNN\\v9.0\\bin;.'
|
|
653
|
+
current_path: str = 'D:\\anaconda3\\envs\\py39;D:\\anaconda3\\envs\\py39\\Library\\mingw-w64\\bin;D:\\anaconda3\\envs\\py39\\Library\\usr\\bin;D:\\anaconda3\\envs\\py39\\Library\\bin;D:\\anaconda3\\envs\\py39\\Scripts;D:\\anaconda3\\envs\\py39\\bin;D:\\anaconda3\\condabin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\libnvvp;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files\\Calibre2;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\WINDOWS\\System32\\OpenSSH;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2024.1.0;C:\\Program Files\\CMake\\bin;C:\\Program Files\\NVIDIA Corporation\\NVIDIA app\\NvDLISR;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\xmake;d:\\anaconda3;d:\\anaconda3\\Library\\mingw-w64\\bin;d:\\anaconda3\\Library\\usr\\bin;d:\\anaconda3\\Library\\bin;d:\\anaconda3\\Scripts;C:\\Qt\\6.8.0\\msvc2022_64\\bin;C:\\Users\\admin\\.cargo\\bin;C:\\Users\\admin\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\admin\\xmake;D:\\mysql-8.0.27-winx64\\bin;C:\\Program Files\\Graphviz\\bin;D:\\mongodb-win32-x86_64-windows-5.0.6\\bin;C:\\tools\\apache-maven-3.8.6\\bin;C:\\Program Files\\7-Zip;C:\\Users\\admin\\AppData\\Local\\Android\\Sdk\\platform-tools;C:\\Users\\admin\\AppData\\Local\\Microsoft\\WindowsApps;c:\\tools;C:\\Users\\admin\\go\\bin;C:\\Users\\admin\\AppData\\Roaming\\npm;C:\\Program Files\\NVDIA\\CUDNN\\v9.0\\bin;D:\\workspace\\git-view\\vcpkg;.'
|
|
629
654
|
dll_directory: str = 'D:\\workspace\\hikyuu\\hikyuu\\cpp'
|
|
630
655
|
hku_logger: logging.Logger # value = <Logger hikyuu (INFO)>
|
|
631
|
-
new_path: str = 'D:\\workspace\\hikyuu\\hikyuu\\cpp;D:\\anaconda3\\envs\\py39;D:\\anaconda3\\envs\\py39\\Library\\mingw-w64\\bin;D:\\anaconda3\\envs\\py39\\Library\\usr\\bin;D:\\anaconda3\\envs\\py39\\Library\\bin;D:\\anaconda3\\envs\\py39\\Scripts;D:\\anaconda3\\envs\\py39\\bin;D:\\anaconda3\\condabin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\libnvvp;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files\\Calibre2;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\WINDOWS\\System32\\OpenSSH;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2024.1.0;C:\\Program Files\\CMake\\bin;C:\\Program Files\\NVIDIA Corporation\\NVIDIA app\\NvDLISR;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\xmake;d:\\anaconda3;d:\\anaconda3\\Library\\mingw-w64\\bin;d:\\anaconda3\\Library\\usr\\bin;d:\\anaconda3\\Library\\bin;d:\\anaconda3\\Scripts;C:\\Qt\\6.8.0\\msvc2022_64\\bin;C:\\Users\\admin\\.cargo\\bin;C:\\Users\\admin\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\admin\\xmake;D:\\mysql-8.0.27-winx64\\bin;C:\\Program Files\\Graphviz\\bin;D:\\mongodb-win32-x86_64-windows-5.0.6\\bin;C:\\tools\\apache-maven-3.8.6\\bin;C:\\Program Files\\7-Zip;C:\\Users\\admin\\AppData\\Local\\Android\\Sdk\\platform-tools;C:\\Users\\admin\\AppData\\Local\\Microsoft\\WindowsApps;c:\\tools;C:\\Users\\admin\\go\\bin;C:\\Users\\admin\\AppData\\Roaming\\npm;C:\\Program Files\\NVDIA\\CUDNN\\v9.0\\bin;.'
|
|
656
|
+
new_path: str = 'D:\\workspace\\hikyuu\\hikyuu\\cpp;D:\\anaconda3\\envs\\py39;D:\\anaconda3\\envs\\py39\\Library\\mingw-w64\\bin;D:\\anaconda3\\envs\\py39\\Library\\usr\\bin;D:\\anaconda3\\envs\\py39\\Library\\bin;D:\\anaconda3\\envs\\py39\\Scripts;D:\\anaconda3\\envs\\py39\\bin;D:\\anaconda3\\condabin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\libnvvp;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files\\Calibre2;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\WINDOWS\\System32\\OpenSSH;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2024.1.0;C:\\Program Files\\CMake\\bin;C:\\Program Files\\NVIDIA Corporation\\NVIDIA app\\NvDLISR;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\xmake;d:\\anaconda3;d:\\anaconda3\\Library\\mingw-w64\\bin;d:\\anaconda3\\Library\\usr\\bin;d:\\anaconda3\\Library\\bin;d:\\anaconda3\\Scripts;C:\\Qt\\6.8.0\\msvc2022_64\\bin;C:\\Users\\admin\\.cargo\\bin;C:\\Users\\admin\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\admin\\xmake;D:\\mysql-8.0.27-winx64\\bin;C:\\Program Files\\Graphviz\\bin;D:\\mongodb-win32-x86_64-windows-5.0.6\\bin;C:\\tools\\apache-maven-3.8.6\\bin;C:\\Program Files\\7-Zip;C:\\Users\\admin\\AppData\\Local\\Android\\Sdk\\platform-tools;C:\\Users\\admin\\AppData\\Local\\Microsoft\\WindowsApps;c:\\tools;C:\\Users\\admin\\go\\bin;C:\\Users\\admin\\AppData\\Roaming\\npm;C:\\Program Files\\NVDIA\\CUDNN\\v9.0\\bin;D:\\workspace\\git-view\\vcpkg;.'
|
hikyuu/trade_manage/trade.py
CHANGED
|
@@ -36,10 +36,16 @@ import pandas as pd
|
|
|
36
36
|
|
|
37
37
|
TradeRecordList.to_np = lambda self: trades_to_np(self)
|
|
38
38
|
TradeRecordList.to_df = lambda self: trades_to_df(self)
|
|
39
|
+
TradeRecordList.to_numpy = TradeRecordList.to_np
|
|
40
|
+
TradeRecordList.to_pandas = TradeRecordList.to_df
|
|
41
|
+
TradeRecordList.to_pyarrow = lambda self: trades_to_pa(self)
|
|
39
42
|
|
|
40
43
|
|
|
41
44
|
PositionRecordList.to_np = lambda self: positions_to_np(self)
|
|
42
45
|
PositionRecordList.to_df = lambda self: positions_to_df(self)
|
|
46
|
+
PositionRecordList.to_numpy = PositionRecordList.to_np
|
|
47
|
+
PositionRecordList.to_pandas = PositionRecordList.to_df
|
|
48
|
+
PositionRecordList.to_pyarrow = lambda self: positions_to_pa(self)
|
|
43
49
|
|
|
44
50
|
|
|
45
51
|
def Performance_to_df(per):
|