hikyuu 2.5.1__py3-none-win_amd64.whl → 2.5.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__.pyi +15 -8
- hikyuu/analysis/__init__.pyi +7 -0
- hikyuu/analysis/analysis.pyi +8 -1
- hikyuu/core.pyi +9 -2
- hikyuu/cpp/__init__.pyi +3 -0
- hikyuu/cpp/core310.pyd +0 -0
- hikyuu/cpp/core310.pyi +12949 -0
- hikyuu/cpp/core311.pyd +0 -0
- hikyuu/cpp/core311.pyi +12949 -0
- hikyuu/cpp/core312.pyd +0 -0
- hikyuu/cpp/core312.pyi +12949 -0
- hikyuu/cpp/core313.pyd +0 -0
- hikyuu/cpp/core313.pyi +12933 -0
- hikyuu/cpp/core38.pyd +0 -0
- hikyuu/cpp/core38.pyi +12949 -0
- hikyuu/cpp/core39.pyd +0 -0
- hikyuu/cpp/core39.pyi +12949 -0
- hikyuu/cpp/hikyuu.dll +0 -0
- hikyuu/cpp/hikyuu.lib +0 -0
- hikyuu/draw/__init__.pyi +1 -1
- hikyuu/draw/drawplot/__init__.pyi +1 -1
- hikyuu/draw/drawplot/bokeh_draw.pyi +13 -6
- hikyuu/draw/drawplot/echarts_draw.pyi +13 -6
- hikyuu/draw/drawplot/matplotlib_draw.py +5 -4
- hikyuu/draw/drawplot/matplotlib_draw.pyi +12 -5
- hikyuu/extend.py +0 -24
- hikyuu/extend.pyi +11 -22
- hikyuu/hub.py +43 -4
- hikyuu/hub.pyi +19 -7
- hikyuu/include/hikyuu/trade_manage/PositionRecord.h +7 -2
- hikyuu/include/hikyuu/trade_sys/signal/SignalBase.h +1 -7
- hikyuu/include/hikyuu/trade_sys/signal/crt/SG_Logic.h +29 -0
- hikyuu/include/hikyuu/trade_sys/signal/crt/SG_OneSide.h +10 -0
- hikyuu/include/hikyuu/trade_sys/signal/imp/logic/OperatorSignal.h +2 -1
- hikyuu/include/hikyuu/version.h +4 -4
- hikyuu/trade_manage/__init__.pyi +11 -6
- hikyuu/trade_manage/trade.pyi +11 -6
- hikyuu/util/singleton.pyi +1 -1
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.2.dist-info}/METADATA +1 -1
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.2.dist-info}/RECORD +44 -37
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.2.dist-info}/LICENSE +0 -0
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.2.dist-info}/WHEEL +0 -0
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.2.dist-info}/entry_points.txt +0 -0
- {hikyuu-2.5.1.dist-info → hikyuu-2.5.2.dist-info}/top_level.txt +0 -0
hikyuu/cpp/hikyuu.dll
CHANGED
|
Binary file
|
hikyuu/cpp/hikyuu.lib
CHANGED
|
Binary file
|
hikyuu/draw/__init__.pyi
CHANGED
|
@@ -9,8 +9,8 @@ from hikyuu.draw.drawplot import gcf
|
|
|
9
9
|
from hikyuu.draw.drawplot import get_current_draw_engine
|
|
10
10
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWBAND
|
|
11
11
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWICON
|
|
12
|
-
from hikyuu.draw.drawplot.matplotlib_draw import DRAWIMG
|
|
13
12
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWIMG as DRAWBMP
|
|
13
|
+
from hikyuu.draw.drawplot.matplotlib_draw import DRAWIMG
|
|
14
14
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWLINE
|
|
15
15
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWNUMBER
|
|
16
16
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWNUMBER_FIX
|
|
@@ -24,8 +24,8 @@ from hikyuu.draw.drawplot.echarts_draw import sys_performance as ec_sys_performa
|
|
|
24
24
|
from hikyuu.draw.drawplot.echarts_draw import sysplot as ec_sysplot
|
|
25
25
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWBAND
|
|
26
26
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWICON
|
|
27
|
-
from hikyuu.draw.drawplot.matplotlib_draw import DRAWIMG
|
|
28
27
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWIMG as DRAWBMP
|
|
28
|
+
from hikyuu.draw.drawplot.matplotlib_draw import DRAWIMG
|
|
29
29
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWLINE
|
|
30
30
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWNUMBER
|
|
31
31
|
from hikyuu.draw.drawplot.matplotlib_draw import DRAWNUMBER_FIX
|
|
@@ -136,8 +136,8 @@ from hikyuu.cpp.core312 import KDataDriver
|
|
|
136
136
|
from hikyuu.cpp.core312 import KRecord
|
|
137
137
|
from hikyuu.cpp.core312 import KRecordList
|
|
138
138
|
from hikyuu.cpp.core312 import LAST
|
|
139
|
-
from hikyuu.cpp.core312 import LASTVALUE as CONST
|
|
140
139
|
from hikyuu.cpp.core312 import LASTVALUE
|
|
140
|
+
from hikyuu.cpp.core312 import LASTVALUE as CONST
|
|
141
141
|
from hikyuu.cpp.core312 import LIUTONGPAN
|
|
142
142
|
from hikyuu.cpp.core312 import LIUTONGPAN as CAPITAL
|
|
143
143
|
from hikyuu.cpp.core312 import LLV
|
|
@@ -185,8 +185,8 @@ from hikyuu.cpp.core312 import PG_FixedPercent
|
|
|
185
185
|
from hikyuu.cpp.core312 import PG_NoGoal
|
|
186
186
|
from hikyuu.cpp.core312 import POS
|
|
187
187
|
from hikyuu.cpp.core312 import POW
|
|
188
|
-
from hikyuu.cpp.core312 import PRICELIST as VALUE
|
|
189
188
|
from hikyuu.cpp.core312 import PRICELIST
|
|
189
|
+
from hikyuu.cpp.core312 import PRICELIST as VALUE
|
|
190
190
|
from hikyuu.cpp.core312 import Parameter
|
|
191
191
|
from hikyuu.cpp.core312 import Performance
|
|
192
192
|
from hikyuu.cpp.core312 import Portfolio
|
|
@@ -217,16 +217,22 @@ from hikyuu.cpp.core312 import SE_MultiFactor
|
|
|
217
217
|
from hikyuu.cpp.core312 import SE_PerformanceOptimal
|
|
218
218
|
from hikyuu.cpp.core312 import SE_Signal
|
|
219
219
|
from hikyuu.cpp.core312 import SGN
|
|
220
|
+
from hikyuu.cpp.core312 import SG_Add
|
|
220
221
|
from hikyuu.cpp.core312 import SG_AllwaysBuy
|
|
221
222
|
from hikyuu.cpp.core312 import SG_Band
|
|
222
223
|
from hikyuu.cpp.core312 import SG_Bool
|
|
224
|
+
from hikyuu.cpp.core312 import SG_Buy
|
|
223
225
|
from hikyuu.cpp.core312 import SG_Cross
|
|
224
226
|
from hikyuu.cpp.core312 import SG_CrossGold
|
|
225
227
|
from hikyuu.cpp.core312 import SG_Cycle
|
|
228
|
+
from hikyuu.cpp.core312 import SG_Div
|
|
226
229
|
from hikyuu.cpp.core312 import SG_Flex
|
|
230
|
+
from hikyuu.cpp.core312 import SG_Mul
|
|
227
231
|
from hikyuu.cpp.core312 import SG_OneSide
|
|
232
|
+
from hikyuu.cpp.core312 import SG_Sell
|
|
228
233
|
from hikyuu.cpp.core312 import SG_Single
|
|
229
234
|
from hikyuu.cpp.core312 import SG_Single2
|
|
235
|
+
from hikyuu.cpp.core312 import SG_Sub
|
|
230
236
|
from hikyuu.cpp.core312 import SIN
|
|
231
237
|
from hikyuu.cpp.core312 import SLICE
|
|
232
238
|
from hikyuu.cpp.core312 import SLOPE
|
|
@@ -457,6 +463,7 @@ from hikyuu.cpp.core312 import ZHBOND10
|
|
|
457
463
|
from hikyuu.cpp.core312 import ZONGGUBEN
|
|
458
464
|
from hikyuu.cpp.core312 import ZSCORE
|
|
459
465
|
from hikyuu.cpp.core312 import __init__ as old_Query_init
|
|
466
|
+
from hikyuu.cpp.core312 import batch_calculate_inds
|
|
460
467
|
from hikyuu.cpp.core312 import can_upgrade
|
|
461
468
|
from hikyuu.cpp.core312 import close_ostream_to_python
|
|
462
469
|
from hikyuu.cpp.core312 import close_spend_time
|
|
@@ -505,8 +512,6 @@ from hikyuu.extend import DatetimeList_to_df
|
|
|
505
512
|
from hikyuu.extend import DatetimeList_to_np
|
|
506
513
|
from hikyuu.extend import Datetime_date
|
|
507
514
|
from hikyuu.extend import Datetime_datetime
|
|
508
|
-
from hikyuu.extend import KData_getPos
|
|
509
|
-
from hikyuu.extend import KData_getPosInStock
|
|
510
515
|
from hikyuu.extend import KData_getitem
|
|
511
516
|
from hikyuu.extend import KData_iter
|
|
512
517
|
from hikyuu.extend import KData_to_df
|
|
@@ -530,7 +535,9 @@ from hikyuu.hub import get_hub_name_list
|
|
|
530
535
|
from hikyuu.hub import get_hub_path
|
|
531
536
|
from hikyuu.hub import get_part
|
|
532
537
|
from hikyuu.hub import get_part_info
|
|
538
|
+
from hikyuu.hub import get_part_module
|
|
533
539
|
from hikyuu.hub import get_part_name_list
|
|
540
|
+
from hikyuu.hub import print_part_info as help_part
|
|
534
541
|
from hikyuu.hub import print_part_info
|
|
535
542
|
from hikyuu.hub import remove_hub
|
|
536
543
|
from hikyuu.hub import update_hub
|
|
@@ -583,8 +590,8 @@ from hikyuu.util.mylog import LoggingContext
|
|
|
583
590
|
from hikyuu.util.mylog import add_class_logger_handler
|
|
584
591
|
from hikyuu.util.mylog import capture_multiprocess_all_logger
|
|
585
592
|
from hikyuu.util.mylog import class_logger
|
|
586
|
-
from hikyuu.util.mylog import hku_debug
|
|
587
593
|
from hikyuu.util.mylog import hku_debug as hku_trace
|
|
594
|
+
from hikyuu.util.mylog import hku_debug
|
|
588
595
|
from hikyuu.util.mylog import hku_debug_if
|
|
589
596
|
from hikyuu.util.mylog import hku_debug_if as hku_trace_if
|
|
590
597
|
from hikyuu.util.mylog import hku_error
|
|
@@ -609,7 +616,7 @@ import pandas as pd
|
|
|
609
616
|
import pickle as pickle
|
|
610
617
|
import sys as sys
|
|
611
618
|
import traceback as traceback
|
|
612
|
-
__all__ = ['ABS', 'ACOS', 'AD', 'ADVANCE', 'AF_EqualWeight', 'AF_FixedWeight', 'AF_FixedWeightList', 'AF_MultiFactor', 'ALIGN', 'AMA', 'AMO', 'ASIN', 'ATAN', 'ATR', 'AVEDEV', 'AllocateFundsBase', 'BACKSET', 'BARSCOUNT', 'BARSLAST', 'BARSSINCE', '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', 'ColumnDataSource', 'ConditionBase', 'Constant', 'CostRecord', 'DATE', 'DAY', 'DEBUG', 'DECLINE', 'DEVSQ', 'DIFF', 'DIRECT', 'DISCARD', 'DMA', 'DOWNNDAY', 'DROPNA', 'DataDriverFactory', 'Datetime', 'DatetimeList', 'DatetimeList_to_df', 'DatetimeList_to_np', 'DatetimeTickFormatter', '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', 'HoverTool', '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', 'KDATA', 'KDATA_PART', 'KDJ', 'KData', 'KDataDriver', '
|
|
619
|
+
__all__ = ['ABS', 'ACOS', 'AD', 'ADVANCE', 'AF_EqualWeight', 'AF_FixedWeight', 'AF_FixedWeightList', 'AF_MultiFactor', 'ALIGN', 'AMA', 'AMO', 'ASIN', 'ATAN', 'ATR', 'AVEDEV', 'AllocateFundsBase', 'BACKSET', 'BARSCOUNT', 'BARSLAST', 'BARSSINCE', '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', 'ColumnDataSource', 'ConditionBase', 'Constant', 'CostRecord', 'DATE', 'DAY', 'DEBUG', 'DECLINE', 'DEVSQ', 'DIFF', 'DIRECT', 'DISCARD', 'DMA', 'DOWNNDAY', 'DROPNA', 'DataDriverFactory', 'Datetime', 'DatetimeList', 'DatetimeList_to_df', 'DatetimeList_to_np', 'DatetimeTickFormatter', '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', 'HoverTool', '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', 'KDATA', 'KDATA_PART', 'KDJ', 'KData', 'KDataDriver', 'KData_getitem', 'KData_iter', 'KData_to_df', 'KData_to_np', 'KRecord', 'KRecordList', 'LAST', 'LASTVALUE', 'LIUTONGPAN', 'LLV', 'LLVBARS', 'LN', 'LOG', 'LOG_LEVEL', 'LONGCROSS', 'LOW', 'Label', 'LoanRecord', 'LoggingContext', 'MA', 'MACD', 'MAX', 'MAXYEAR', 'MDD', 'MF_EqualWeight', 'MF_ICIRWeight', 'MF_ICWeight', 'MF_Weight', 'MIN', 'MINUTE', 'MINYEAR', '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', 'Performance', 'Performance_to_df', 'Portfolio', 'PositionList_to_df', 'PositionList_to_np', 'PositionRecord', 'PositionRecordList', 'ProfitGoalBase', 'Query', 'RECOVER_BACKWARD', 'RECOVER_EQUAL_BACKWARD', 'RECOVER_EQUAL_FORWARD', 'RECOVER_FORWARD', 'REF', 'REPLACE', 'RESULT', 'REVERSE', 'ROC', 'ROCP', 'ROCR', 'ROCR100', 'ROUND', 'ROUNDDOWN', 'ROUNDUP', 'RSI', 'SAFTYLOSS', 'SE_Fixed', 'SE_MaxFundsOptimal', 'SE_MultiFactor', 'SE_PerformanceOptimal', 'SE_Signal', 'SGN', 'SG_Add', 'SG_AllwaysBuy', 'SG_Band', 'SG_Bool', 'SG_Buy', 'SG_Cross', 'SG_CrossGold', 'SG_Cycle', 'SG_Div', 'SG_Flex', 'SG_Mul', 'SG_OneSide', 'SG_Sell', 'SG_Single', 'SG_Single2', 'SG_Sub', 'SIN', 'SLICE', 'SLOPE', 'SMA', 'SPEARMAN', 'SP_FixedPercent', 'SP_FixedValue', 'SQRT', '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', 'TRACE', 'TURNOVER', 'TestOrderBroker', 'TimeDelta', 'TimeDelta_timedelta', 'TimeLineList', 'TimeLineRecord', 'TimeLine_to_df', 'TimeLine_to_np', 'Title', 'TradeCostBase', 'TradeList_to_df', 'TradeList_to_np', 'TradeManager', 'TradeRecord', 'TradeRecordList', 'TradeRequest', 'TransList', 'TransList_to_df', 'TransList_to_np', 'TransRecord', 'UPNDAY', 'UTC', 'VALUE', 'VAR', 'VARP', 'VIGOR', 'VOL', 'WARN', 'WEAVE', 'WEEK', 'WINNER', 'WMA', 'YEAR', 'ZHBOND10', 'ZONGGUBEN', 'ZSCORE', 'add_class_logger_handler', 'add_local_hub', 'add_remote_hub', 'analysis', 'analysis_sys_list', 'analysis_sys_list_multi', 'ax_draw_macd', 'ax_draw_macd2', 'ax_fill_between', 'ax_set_xlim', 'ax_set_ylim', 'batch_calculate_inds', 'broker', 'broker_easytrader', 'broker_mail', 'build_hub', 'can_upgrade', 'capture_multiprocess_all_logger', 'class_logger', 'close_ostream_to_python', 'close_spend_time', 'column', 'combinate_ind', 'combinate_ind_analysis', 'combinate_ind_analysis_multi', 'combinate_index', 'concat_to_df', 'constant', 'core', 'cpp', 'create_figure', 'create_one_axes_figure', 'create_three_axes_figure', 'create_two_axes_figure', 'crtAF', 'crtBrokerTM', 'crtCN', 'crtEV', 'crtMF', 'crtMM', 'crtOB', 'crtPG', 'crtSE', 'crtSEOptimal', 'crtSG', 'crtSP', 'crtST', 'crtTM', 'crt_pf_strategy', 'crt_sys_strategy', 'date', 'datetime', 'df_to_ind', 'extend', 'figure', 'find_optimal_system', 'find_optimal_system_multi', 'g_axes', 'g_figure', 'g_use_in_notbook', 'gca', 'gcf', 'get_block', 'get_business_name', 'get_color', 'get_current_hub', 'get_data_from_buffer_server', 'get_date_format', 'get_date_range', 'get_hub_name_list', 'get_hub_path', 'get_kdata', 'get_last_version', 'get_log_level', 'get_part', 'get_part_info', 'get_part_module', 'get_part_name_list', 'get_stock', 'get_system_part_enum', 'get_system_part_name', 'get_version', 'get_version_git', 'get_version_with_build', 'help_part', 'hikyuu_init', '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_to_async', 'hku_trace', 'hku_trace_if', 'hku_warn', 'hku_warn_if', 'hub', 'ibar', 'in_interactive_session', 'in_ipython_frontend', 'indicator', 'indicator_getitem', 'indicator_iter', 'indicator_to_df', 'inner_analysis_sys_list', 'inner_combinate_ind_analysis', 'inner_combinate_ind_analysis_with_block', 'iplot', 'isinf', 'isnan', 'kplot', 'list_getitem', 'mkplot', 'new_Query_init', 'np', 'old_Query_init', 'open_ostream_to_python', 'open_spend_time', 'os', 'output_file', 'output_notebook', 'part_clone', 'part_init', 'part_iter', 'pd', 'pickle', 'print_part_info', 'pyind', 'remove_hub', 'roundDown', 'roundEx', 'roundUp', 'run_in_strategy', 'set_log_level', 'set_my_logger_file', 'set_python_in_interactive', 'set_python_in_jupyter', 'sgplot', 'show', 'show_gcf', 'spend_time', 'start_spot_agent', 'stop_spot_agent', 'sys', 'talib_wrap', 'time', 'timedelta', 'timeout', 'timezone', 'toPriceList', 'traceback', 'trade', 'trade_manage', 'trade_sys', 'trans_color', 'tzinfo', 'update_hub', 'use_bokeh_in_notebook', 'util', 'with_trace']
|
|
613
620
|
def ax_draw_macd(axes, kdata, n1 = 12, n2 = 26, n3 = 9):
|
|
614
621
|
"""
|
|
615
622
|
绘制MACD
|
|
@@ -123,8 +123,8 @@ from hikyuu.cpp.core312 import KDataDriver
|
|
|
123
123
|
from hikyuu.cpp.core312 import KRecord
|
|
124
124
|
from hikyuu.cpp.core312 import KRecordList
|
|
125
125
|
from hikyuu.cpp.core312 import LAST
|
|
126
|
-
from hikyuu.cpp.core312 import LASTVALUE as CONST
|
|
127
126
|
from hikyuu.cpp.core312 import LASTVALUE
|
|
127
|
+
from hikyuu.cpp.core312 import LASTVALUE as CONST
|
|
128
128
|
from hikyuu.cpp.core312 import LIUTONGPAN
|
|
129
129
|
from hikyuu.cpp.core312 import LIUTONGPAN as CAPITAL
|
|
130
130
|
from hikyuu.cpp.core312 import LLV
|
|
@@ -172,8 +172,8 @@ from hikyuu.cpp.core312 import PG_FixedPercent
|
|
|
172
172
|
from hikyuu.cpp.core312 import PG_NoGoal
|
|
173
173
|
from hikyuu.cpp.core312 import POS
|
|
174
174
|
from hikyuu.cpp.core312 import POW
|
|
175
|
-
from hikyuu.cpp.core312 import PRICELIST as VALUE
|
|
176
175
|
from hikyuu.cpp.core312 import PRICELIST
|
|
176
|
+
from hikyuu.cpp.core312 import PRICELIST as VALUE
|
|
177
177
|
from hikyuu.cpp.core312 import Parameter
|
|
178
178
|
from hikyuu.cpp.core312 import Performance
|
|
179
179
|
from hikyuu.cpp.core312 import Portfolio
|
|
@@ -204,16 +204,22 @@ from hikyuu.cpp.core312 import SE_MultiFactor
|
|
|
204
204
|
from hikyuu.cpp.core312 import SE_PerformanceOptimal
|
|
205
205
|
from hikyuu.cpp.core312 import SE_Signal
|
|
206
206
|
from hikyuu.cpp.core312 import SGN
|
|
207
|
+
from hikyuu.cpp.core312 import SG_Add
|
|
207
208
|
from hikyuu.cpp.core312 import SG_AllwaysBuy
|
|
208
209
|
from hikyuu.cpp.core312 import SG_Band
|
|
209
210
|
from hikyuu.cpp.core312 import SG_Bool
|
|
211
|
+
from hikyuu.cpp.core312 import SG_Buy
|
|
210
212
|
from hikyuu.cpp.core312 import SG_Cross
|
|
211
213
|
from hikyuu.cpp.core312 import SG_CrossGold
|
|
212
214
|
from hikyuu.cpp.core312 import SG_Cycle
|
|
215
|
+
from hikyuu.cpp.core312 import SG_Div
|
|
213
216
|
from hikyuu.cpp.core312 import SG_Flex
|
|
217
|
+
from hikyuu.cpp.core312 import SG_Mul
|
|
214
218
|
from hikyuu.cpp.core312 import SG_OneSide
|
|
219
|
+
from hikyuu.cpp.core312 import SG_Sell
|
|
215
220
|
from hikyuu.cpp.core312 import SG_Single
|
|
216
221
|
from hikyuu.cpp.core312 import SG_Single2
|
|
222
|
+
from hikyuu.cpp.core312 import SG_Sub
|
|
217
223
|
from hikyuu.cpp.core312 import SIN
|
|
218
224
|
from hikyuu.cpp.core312 import SLICE
|
|
219
225
|
from hikyuu.cpp.core312 import SLOPE
|
|
@@ -444,6 +450,7 @@ from hikyuu.cpp.core312 import ZHBOND10
|
|
|
444
450
|
from hikyuu.cpp.core312 import ZONGGUBEN
|
|
445
451
|
from hikyuu.cpp.core312 import ZSCORE
|
|
446
452
|
from hikyuu.cpp.core312 import __init__ as old_Query_init
|
|
453
|
+
from hikyuu.cpp.core312 import batch_calculate_inds
|
|
447
454
|
from hikyuu.cpp.core312 import can_upgrade
|
|
448
455
|
from hikyuu.cpp.core312 import close_ostream_to_python
|
|
449
456
|
from hikyuu.cpp.core312 import close_spend_time
|
|
@@ -493,8 +500,6 @@ from hikyuu.extend import DatetimeList_to_df
|
|
|
493
500
|
from hikyuu.extend import DatetimeList_to_np
|
|
494
501
|
from hikyuu.extend import Datetime_date
|
|
495
502
|
from hikyuu.extend import Datetime_datetime
|
|
496
|
-
from hikyuu.extend import KData_getPos
|
|
497
|
-
from hikyuu.extend import KData_getPosInStock
|
|
498
503
|
from hikyuu.extend import KData_getitem
|
|
499
504
|
from hikyuu.extend import KData_iter
|
|
500
505
|
from hikyuu.extend import KData_to_df
|
|
@@ -518,7 +523,9 @@ from hikyuu.hub import get_hub_name_list
|
|
|
518
523
|
from hikyuu.hub import get_hub_path
|
|
519
524
|
from hikyuu.hub import get_part
|
|
520
525
|
from hikyuu.hub import get_part_info
|
|
526
|
+
from hikyuu.hub import get_part_module
|
|
521
527
|
from hikyuu.hub import get_part_name_list
|
|
528
|
+
from hikyuu.hub import print_part_info as help_part
|
|
522
529
|
from hikyuu.hub import print_part_info
|
|
523
530
|
from hikyuu.hub import remove_hub
|
|
524
531
|
from hikyuu.hub import update_hub
|
|
@@ -571,8 +578,8 @@ from hikyuu.util.mylog import LoggingContext
|
|
|
571
578
|
from hikyuu.util.mylog import add_class_logger_handler
|
|
572
579
|
from hikyuu.util.mylog import capture_multiprocess_all_logger
|
|
573
580
|
from hikyuu.util.mylog import class_logger
|
|
574
|
-
from hikyuu.util.mylog import hku_debug
|
|
575
581
|
from hikyuu.util.mylog import hku_debug as hku_trace
|
|
582
|
+
from hikyuu.util.mylog import hku_debug
|
|
576
583
|
from hikyuu.util.mylog import hku_debug_if
|
|
577
584
|
from hikyuu.util.mylog import hku_debug_if as hku_trace_if
|
|
578
585
|
from hikyuu.util.mylog import hku_error
|
|
@@ -608,7 +615,7 @@ from pyecharts import options as opts
|
|
|
608
615
|
import pyecharts.options.global_options
|
|
609
616
|
import sys as sys
|
|
610
617
|
import traceback as traceback
|
|
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', 'BARSSINCE', 'BETWEEN', 'BLOCKSETNUM', 'BUSINESS', 'Bar', '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', 'ChartBase', 'ConditionBase', 'Constant', 'CostRecord', 'DATE', 'DAY', 'DEBUG', 'DECLINE', 'DEVSQ', 'DIFF', 'DIRECT', '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', 'Grid', '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', 'JsCode', 'KDATA', 'KDATA_PART', 'KDJ', 'KData', 'KDataDriver', '
|
|
618
|
+
__all__ = ['ABS', 'ACOS', 'AD', 'ADVANCE', 'AF_EqualWeight', 'AF_FixedWeight', 'AF_FixedWeightList', 'AF_MultiFactor', 'ALIGN', 'AMA', 'AMO', 'ASIN', 'ATAN', 'ATR', 'AVEDEV', 'AllocateFundsBase', 'BACKSET', 'BARSCOUNT', 'BARSLAST', 'BARSSINCE', 'BETWEEN', 'BLOCKSETNUM', 'BUSINESS', 'Bar', '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', 'ChartBase', 'ConditionBase', 'Constant', 'CostRecord', 'DATE', 'DAY', 'DEBUG', 'DECLINE', 'DEVSQ', 'DIFF', 'DIRECT', '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', 'Grid', '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', 'JsCode', 'KDATA', 'KDATA_PART', 'KDJ', 'KData', 'KDataDriver', 'KData_getitem', 'KData_iter', 'KData_to_df', 'KData_to_np', 'KRecord', 'KRecordList', 'Kline', 'LAST', 'LASTVALUE', 'LIUTONGPAN', 'LLV', 'LLVBARS', 'LN', 'LOG', 'LOG_LEVEL', 'LONGCROSS', 'LOW', 'Line', 'LoanRecord', 'LoggingContext', 'MA', 'MACD', 'MAX', 'MAXYEAR', 'MDD', 'MF_EqualWeight', 'MF_ICIRWeight', 'MF_ICWeight', 'MF_Weight', 'MIN', 'MINUTE', 'MINYEAR', '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', 'MultiLineTextChart', 'NDAY', 'NOT', 'OFF', 'OPEN', 'OrderBrokerBase', 'OrderBrokerWrap', 'PF_Simple', 'PF_WithoutAF', 'PG_FixedHoldDays', 'PG_FixedPercent', 'PG_NoGoal', 'POS', 'POW', 'PRICELIST', 'Page', 'Parameter', 'Parameter_items', 'Parameter_iter', 'Parameter_keys', 'Parameter_to_dict', 'Performance', 'Performance_to_df', 'Portfolio', 'PositionList_to_df', 'PositionList_to_np', 'PositionRecord', 'PositionRecordList', 'ProfitGoalBase', 'Query', 'RECOVER_BACKWARD', 'RECOVER_EQUAL_BACKWARD', 'RECOVER_EQUAL_FORWARD', 'RECOVER_FORWARD', 'REF', 'REPLACE', 'RESULT', 'REVERSE', 'ROC', 'ROCP', 'ROCR', 'ROCR100', 'ROUND', 'ROUNDDOWN', 'ROUNDUP', 'RSI', 'SAFTYLOSS', 'SE_Fixed', 'SE_MaxFundsOptimal', 'SE_MultiFactor', 'SE_PerformanceOptimal', 'SE_Signal', 'SGN', 'SG_Add', 'SG_AllwaysBuy', 'SG_Band', 'SG_Bool', 'SG_Buy', 'SG_Cross', 'SG_CrossGold', 'SG_Cycle', 'SG_Div', 'SG_Flex', 'SG_Mul', 'SG_OneSide', 'SG_Sell', 'SG_Single', 'SG_Single2', 'SG_Sub', 'SIN', 'SLICE', 'SLOPE', 'SMA', 'SPEARMAN', 'SP_FixedPercent', 'SP_FixedValue', 'SQRT', 'STDEV', 'STDP', 'ST_FixedPercent', 'ST_Indicator', 'ST_Saftyloss', 'SUM', 'SUMBARS', 'SYS_Simple', 'SYS_WalkForward', 'Scatter', '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', 'TRACE', 'TURNOVER', 'TestOrderBroker', 'TimeDelta', 'TimeDelta_timedelta', 'TimeLineList', 'TimeLineRecord', 'TimeLine_to_df', 'TimeLine_to_np', 'TradeCostBase', 'TradeList_to_df', 'TradeList_to_np', 'TradeManager', 'TradeRecord', 'TradeRecordList', 'TradeRequest', 'TransList', 'TransList_to_df', 'TransList_to_np', 'TransRecord', 'UPNDAY', 'UTC', 'VALUE', 'VAR', 'VARP', 'VIGOR', 'VOL', 'WARN', 'WEAVE', 'WEEK', 'WINNER', 'WMA', 'YEAR', 'ZHBOND10', 'ZONGGUBEN', 'ZSCORE', 'add_class_logger_handler', 'add_local_hub', 'add_remote_hub', 'analysis', 'analysis_sys_list', 'analysis_sys_list_multi', 'batch_calculate_inds', 'broker', 'broker_easytrader', 'broker_mail', 'build_hub', 'can_upgrade', 'capture_multiprocess_all_logger', 'class_logger', 'close_ostream_to_python', 'close_spend_time', 'combinate_ind', 'combinate_ind_analysis', 'combinate_ind_analysis_multi', 'combinate_index', 'concat_to_df', 'constant', 'core', 'cpp', 'crtAF', 'crtBrokerTM', 'crtCN', 'crtEV', 'crtMF', 'crtMM', 'crtOB', 'crtPG', 'crtSE', 'crtSEOptimal', 'crtSG', 'crtSP', 'crtST', 'crtTM', 'crt_pf_strategy', 'crt_sys_strategy', 'date', 'datetime', 'df_to_ind', 'extend', 'find_optimal_system', 'find_optimal_system_multi', 'get_block', 'get_business_name', 'get_current_hub', 'get_data_from_buffer_server', 'get_date_range', 'get_draw_title', 'get_hub_name_list', 'get_hub_path', 'get_kdata', 'get_last_version', 'get_log_level', 'get_part', 'get_part_info', 'get_part_module', 'get_part_name_list', 'get_series_name', 'get_stock', 'get_system_part_enum', 'get_system_part_name', 'get_version', 'get_version_git', 'get_version_with_build', 'grid_pos', 'help_part', 'hikyuu_init', '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_to_async', 'hku_trace', 'hku_trace_if', 'hku_warn', 'hku_warn_if', 'hub', 'ibar', 'in_interactive_session', 'in_ipython_frontend', 'indicator', 'indicator_getitem', 'indicator_iter', 'indicator_to_df', 'inner_analysis_sys_list', 'inner_combinate_ind_analysis', 'inner_combinate_ind_analysis_with_block', 'iplot', 'isinf', 'isnan', 'kplot', 'kplot_line', 'list_getitem', 'new_Query_init', 'np', 'old_Query_init', 'open_ostream_to_python', 'open_spend_time', 'opts', 'os', 'part_clone', 'part_init', 'part_iter', 'pd', 'pickle', 'print_part_info', 'pyind', 'remove_hub', 'roundDown', 'roundEx', 'roundUp', 'run_in_strategy', 'set_log_level', 'set_my_logger_file', 'set_python_in_interactive', 'set_python_in_jupyter', 'simple_datetime_list', 'spend_time', 'start_spot_agent', 'stop_spot_agent', 'sys', 'sys_performance', 'sysplot', 'talib_wrap', 'time', 'timedelta', 'timeout', 'timezone', 'toPriceList', 'traceback', 'trade', 'trade_manage', 'trade_sys', 'tzinfo', 'update_hub', 'util', 'volume_barplot', 'with_trace', 'wraps']
|
|
612
619
|
class MultiLineTextChart(pyecharts.charts.base.Base):
|
|
613
620
|
def __init__(self, init_opts: pyecharts.options.global_options.InitOpts = ...):
|
|
614
621
|
...
|
|
@@ -713,13 +713,14 @@ def sysplot(sys, new=True, axes=None, style=1, only_draw_close=False):
|
|
|
713
713
|
if axes is None:
|
|
714
714
|
if new:
|
|
715
715
|
axes = create_figure()
|
|
716
|
-
if only_draw_close:
|
|
717
|
-
iplot(kdata.close, axes=axes)
|
|
718
|
-
else:
|
|
719
|
-
kplot(kdata, axes=axes)
|
|
720
716
|
else:
|
|
721
717
|
axes = gca()
|
|
722
718
|
|
|
719
|
+
if only_draw_close:
|
|
720
|
+
iplot(kdata.close, axes=axes)
|
|
721
|
+
else:
|
|
722
|
+
kplot(kdata, axes=axes)
|
|
723
|
+
|
|
723
724
|
ylim = axes.get_ylim()
|
|
724
725
|
height = ylim[1] - ylim[0]
|
|
725
726
|
|
|
@@ -126,8 +126,8 @@ from hikyuu.cpp.core312 import KDataDriver
|
|
|
126
126
|
from hikyuu.cpp.core312 import KRecord
|
|
127
127
|
from hikyuu.cpp.core312 import KRecordList
|
|
128
128
|
from hikyuu.cpp.core312 import LAST
|
|
129
|
-
from hikyuu.cpp.core312 import LASTVALUE as CONST
|
|
130
129
|
from hikyuu.cpp.core312 import LASTVALUE
|
|
130
|
+
from hikyuu.cpp.core312 import LASTVALUE as CONST
|
|
131
131
|
from hikyuu.cpp.core312 import LIUTONGPAN
|
|
132
132
|
from hikyuu.cpp.core312 import LIUTONGPAN as CAPITAL
|
|
133
133
|
from hikyuu.cpp.core312 import LLV
|
|
@@ -175,8 +175,8 @@ from hikyuu.cpp.core312 import PG_FixedPercent
|
|
|
175
175
|
from hikyuu.cpp.core312 import PG_NoGoal
|
|
176
176
|
from hikyuu.cpp.core312 import POS
|
|
177
177
|
from hikyuu.cpp.core312 import POW
|
|
178
|
-
from hikyuu.cpp.core312 import PRICELIST as VALUE
|
|
179
178
|
from hikyuu.cpp.core312 import PRICELIST
|
|
179
|
+
from hikyuu.cpp.core312 import PRICELIST as VALUE
|
|
180
180
|
from hikyuu.cpp.core312 import Parameter
|
|
181
181
|
from hikyuu.cpp.core312 import Performance
|
|
182
182
|
from hikyuu.cpp.core312 import Portfolio
|
|
@@ -207,16 +207,22 @@ from hikyuu.cpp.core312 import SE_MultiFactor
|
|
|
207
207
|
from hikyuu.cpp.core312 import SE_PerformanceOptimal
|
|
208
208
|
from hikyuu.cpp.core312 import SE_Signal
|
|
209
209
|
from hikyuu.cpp.core312 import SGN
|
|
210
|
+
from hikyuu.cpp.core312 import SG_Add
|
|
210
211
|
from hikyuu.cpp.core312 import SG_AllwaysBuy
|
|
211
212
|
from hikyuu.cpp.core312 import SG_Band
|
|
212
213
|
from hikyuu.cpp.core312 import SG_Bool
|
|
214
|
+
from hikyuu.cpp.core312 import SG_Buy
|
|
213
215
|
from hikyuu.cpp.core312 import SG_Cross
|
|
214
216
|
from hikyuu.cpp.core312 import SG_CrossGold
|
|
215
217
|
from hikyuu.cpp.core312 import SG_Cycle
|
|
218
|
+
from hikyuu.cpp.core312 import SG_Div
|
|
216
219
|
from hikyuu.cpp.core312 import SG_Flex
|
|
220
|
+
from hikyuu.cpp.core312 import SG_Mul
|
|
217
221
|
from hikyuu.cpp.core312 import SG_OneSide
|
|
222
|
+
from hikyuu.cpp.core312 import SG_Sell
|
|
218
223
|
from hikyuu.cpp.core312 import SG_Single
|
|
219
224
|
from hikyuu.cpp.core312 import SG_Single2
|
|
225
|
+
from hikyuu.cpp.core312 import SG_Sub
|
|
220
226
|
from hikyuu.cpp.core312 import SIN
|
|
221
227
|
from hikyuu.cpp.core312 import SLICE
|
|
222
228
|
from hikyuu.cpp.core312 import SLOPE
|
|
@@ -447,6 +453,7 @@ from hikyuu.cpp.core312 import ZHBOND10
|
|
|
447
453
|
from hikyuu.cpp.core312 import ZONGGUBEN
|
|
448
454
|
from hikyuu.cpp.core312 import ZSCORE
|
|
449
455
|
from hikyuu.cpp.core312 import __init__ as old_Query_init
|
|
456
|
+
from hikyuu.cpp.core312 import batch_calculate_inds
|
|
450
457
|
from hikyuu.cpp.core312 import can_upgrade
|
|
451
458
|
from hikyuu.cpp.core312 import close_ostream_to_python
|
|
452
459
|
from hikyuu.cpp.core312 import close_spend_time
|
|
@@ -496,8 +503,6 @@ from hikyuu.extend import DatetimeList_to_df
|
|
|
496
503
|
from hikyuu.extend import DatetimeList_to_np
|
|
497
504
|
from hikyuu.extend import Datetime_date
|
|
498
505
|
from hikyuu.extend import Datetime_datetime
|
|
499
|
-
from hikyuu.extend import KData_getPos
|
|
500
|
-
from hikyuu.extend import KData_getPosInStock
|
|
501
506
|
from hikyuu.extend import KData_getitem
|
|
502
507
|
from hikyuu.extend import KData_iter
|
|
503
508
|
from hikyuu.extend import KData_to_df
|
|
@@ -521,7 +526,9 @@ from hikyuu.hub import get_hub_name_list
|
|
|
521
526
|
from hikyuu.hub import get_hub_path
|
|
522
527
|
from hikyuu.hub import get_part
|
|
523
528
|
from hikyuu.hub import get_part_info
|
|
529
|
+
from hikyuu.hub import get_part_module
|
|
524
530
|
from hikyuu.hub import get_part_name_list
|
|
531
|
+
from hikyuu.hub import print_part_info as help_part
|
|
525
532
|
from hikyuu.hub import print_part_info
|
|
526
533
|
from hikyuu.hub import remove_hub
|
|
527
534
|
from hikyuu.hub import update_hub
|
|
@@ -614,7 +621,7 @@ import pandas as pd
|
|
|
614
621
|
import pickle as pickle
|
|
615
622
|
import sys as sys
|
|
616
623
|
import traceback as traceback
|
|
617
|
-
__all__ = ['ABS', 'ACOS', 'AD', 'ADVANCE', 'AF_EqualWeight', 'AF_FixedWeight', 'AF_FixedWeightList', 'AF_MultiFactor', 'ALIGN', 'AMA', 'AMO', 'ASIN', 'ATAN', 'ATR', 'AVEDEV', 'AllocateFundsBase', 'BACKSET', 'BARSCOUNT', 'BARSLAST', 'BARSSINCE', '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', 'DIRECT', 'DISCARD', 'DMA', 'DOWNNDAY', 'DRAWBAND', 'DRAWBMP', 'DRAWICON', 'DRAWIMG', 'DRAWLINE', 'DRAWNULL', 'DRAWNUMBER', 'DRAWNUMBER_FIX', 'DRAWRECTREL', 'DRAWSL', 'DRAWTEXT', 'DRAWTEXT_FIX', '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', 'FixedLocator', 'FontManager', 'FuncFormatter', 'FundsRecord', 'HHV', 'HHVBARS', 'HIGH', 'HKUCheckError', 'HKUException', 'HOUR', 'HSL', 'Hours', 'IC', 'ICIR', 'ICON_PATH', 'IF', 'INBLOCK', 'INDEXA', 'INDEXADV', 'INDEXC', 'INDEXDEC', 'INDEXH', 'INDEXL', 'INDEXO', 'INDEXV', 'INFO', 'INSUM', 'INTPART', 'IR', 'ISINF', 'ISINFA', 'ISLASTBAR', 'ISNA', 'IndParam', 'Indicator', 'IndicatorImp', 'JUMPDOWN', 'JUMPUP', 'KDATA', 'KDATA_PART', 'KDJ', 'KData', 'KDataDriver', '
|
|
624
|
+
__all__ = ['ABS', 'ACOS', 'AD', 'ADVANCE', 'AF_EqualWeight', 'AF_FixedWeight', 'AF_FixedWeightList', 'AF_MultiFactor', 'ALIGN', 'AMA', 'AMO', 'ASIN', 'ATAN', 'ATR', 'AVEDEV', 'AllocateFundsBase', 'BACKSET', 'BARSCOUNT', 'BARSLAST', 'BARSSINCE', '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', 'DIRECT', 'DISCARD', 'DMA', 'DOWNNDAY', 'DRAWBAND', 'DRAWBMP', 'DRAWICON', 'DRAWIMG', 'DRAWLINE', 'DRAWNULL', 'DRAWNUMBER', 'DRAWNUMBER_FIX', 'DRAWRECTREL', 'DRAWSL', 'DRAWTEXT', 'DRAWTEXT_FIX', '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', 'FixedLocator', 'FontManager', 'FuncFormatter', 'FundsRecord', 'HHV', 'HHVBARS', 'HIGH', 'HKUCheckError', 'HKUException', 'HOUR', 'HSL', 'Hours', 'IC', 'ICIR', 'ICON_PATH', 'IF', 'INBLOCK', 'INDEXA', 'INDEXADV', 'INDEXC', 'INDEXDEC', 'INDEXH', 'INDEXL', 'INDEXO', 'INDEXV', 'INFO', 'INSUM', 'INTPART', 'IR', 'ISINF', 'ISINFA', 'ISLASTBAR', 'ISNA', 'IndParam', 'Indicator', 'IndicatorImp', 'JUMPDOWN', 'JUMPUP', 'KDATA', 'KDATA_PART', 'KDJ', 'KData', 'KDataDriver', 'KData_getitem', 'KData_iter', 'KData_to_df', 'KData_to_np', 'KRecord', 'KRecordList', 'LAST', 'LASTVALUE', 'LIUTONGPAN', 'LLV', 'LLVBARS', 'LN', 'LOG', 'LOG_LEVEL', 'LONGCROSS', 'LOW', 'Line2D', 'LoanRecord', 'LoggingContext', 'MA', 'MACD', 'MAX', 'MAXYEAR', 'MDD', 'MF_EqualWeight', 'MF_ICIRWeight', 'MF_ICWeight', 'MF_Weight', 'MIN', 'MINUTE', 'MINYEAR', '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', 'PLOYLINE', 'POS', 'POW', 'PRICELIST', 'Parameter', 'Parameter_items', 'Parameter_iter', 'Parameter_keys', 'Parameter_to_dict', 'Performance', 'Performance_to_df', 'Portfolio', 'PositionList_to_df', 'PositionList_to_np', 'PositionRecord', 'PositionRecordList', 'ProfitGoalBase', 'Query', 'RECOVER_BACKWARD', 'RECOVER_EQUAL_BACKWARD', 'RECOVER_EQUAL_FORWARD', 'RECOVER_FORWARD', 'REF', 'REPLACE', 'RESULT', 'REVERSE', 'RGB', 'ROC', 'ROCP', 'ROCR', 'ROCR100', 'ROUND', 'ROUNDDOWN', 'ROUNDUP', 'RSI', 'Rectangle', 'SAFTYLOSS', 'SE_Fixed', 'SE_MaxFundsOptimal', 'SE_MultiFactor', 'SE_PerformanceOptimal', 'SE_Signal', 'SGN', 'SG_Add', 'SG_AllwaysBuy', 'SG_Band', 'SG_Bool', 'SG_Buy', 'SG_Cross', 'SG_CrossGold', 'SG_Cycle', 'SG_Div', 'SG_Flex', 'SG_Mul', 'SG_OneSide', 'SG_Sell', 'SG_Single', 'SG_Single2', 'SG_Sub', 'SHOWICONS', 'SIN', 'SLICE', 'SLOPE', 'SMA', 'SPEARMAN', 'SP_FixedPercent', 'SP_FixedValue', 'SQRT', 'STDEV', 'STDP', 'STICKLINE', 'ST_FixedPercent', 'ST_Indicator', 'ST_Saftyloss', 'SUM', 'SUMBARS', 'SYS_Simple', 'SYS_WalkForward', 'ScoreRecord', 'ScoreRecordList', 'Seconds', 'SelectorBase', 'SignalBase', 'SlippageBase', 'SpotRecord', 'Stock', 'StockFuncFormatter', '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', 'TICKLEFT', 'TICKRIGHT', 'TIME', 'TIMELINE', 'TIMELINEVOL', 'TRACE', 'TURNOVER', 'TestOrderBroker', 'TimeDelta', 'TimeDelta_timedelta', 'TimeLineList', 'TimeLineRecord', 'TimeLine_to_df', 'TimeLine_to_np', 'TradeCostBase', 'TradeList_to_df', 'TradeList_to_np', 'TradeManager', 'TradeRecord', 'TradeRecordList', 'TradeRequest', 'TransList', 'TransList_to_df', 'TransList_to_np', 'TransRecord', 'UPNDAY', 'UTC', 'VALUE', 'VAR', 'VARP', 'VIGOR', 'VOL', 'WARN', 'WEAVE', 'WEEK', 'WINNER', 'WMA', 'YEAR', 'ZHBOND10', 'ZONGGUBEN', 'ZSCORE', 'add_class_logger_handler', 'add_local_hub', 'add_remote_hub', 'adjust_axes_show', 'analysis', 'analysis_sys_list', 'analysis_sys_list_multi', 'ax_draw_macd', 'ax_draw_macd2', 'ax_set_locator_formatter', 'axes', 'batch_calculate_inds', 'broker', 'broker_easytrader', 'broker_mail', 'build_hub', 'can_upgrade', 'capture_multiprocess_all_logger', 'class_logger', 'close_ostream_to_python', 'close_spend_time', 'cnplot', 'combinate_ind', 'combinate_ind_analysis', 'combinate_ind_analysis_multi', 'combinate_index', 'concat_to_df', 'constant', 'core', 'cpp', 'create_figure', 'create_four_axes_figure', 'create_one_axes_figure', 'create_three_axes_figure', 'create_two_axes_figure', 'crtAF', 'crtBrokerTM', 'crtCN', 'crtEV', 'crtMF', 'crtMM', 'crtOB', 'crtPG', 'crtSE', 'crtSEOptimal', 'crtSG', 'crtSP', 'crtST', 'crtTM', 'crt_pf_strategy', 'crt_sys_strategy', 'date', 'datetime', 'df_to_ind', 'draw', 'evplot', 'extend', 'figure', 'find_optimal_system', 'find_optimal_system_multi', 'fm_logger', 'gca', 'gcf', 'getDayLocatorAndFormatter', 'getMinLocatorAndFormatter', 'get_block', 'get_business_name', 'get_current_hub', 'get_data_from_buffer_server', 'get_date_range', 'get_draw_title', 'get_hub_name_list', 'get_hub_path', 'get_kdata', 'get_last_version', 'get_log_level', 'get_part', 'get_part_info', 'get_part_module', 'get_part_name_list', 'get_stock', 'get_system_part_enum', 'get_system_part_name', 'get_version', 'get_version_git', 'get_version_with_build', 'help_part', 'hikyuu_init', '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_to_async', 'hku_trace', 'hku_trace_if', 'hku_warn', 'hku_warn_if', 'hub', 'ibar', 'imread', 'in_interactive_session', 'in_ipython_frontend', 'indicator', 'indicator_getitem', 'indicator_iter', 'indicator_to_df', 'inner_analysis_sys_list', 'inner_combinate_ind_analysis', 'inner_combinate_ind_analysis_with_block', 'iplot', 'isinf', 'isnan', 'kplot', 'list_getitem', 'logging', 'math', 'matplotlib', 'mkplot', 'new_Query_init', 'np', 'old_Query_init', 'open_ostream_to_python', 'open_spend_time', 'os', 'part_clone', 'part_init', 'part_iter', 'pd', 'pickle', 'print_part_info', 'pyind', 'rcParams', 'remove_hub', 'roundDown', 'roundEx', 'roundUp', 'run_in_strategy', 'set_log_level', 'set_mpl_params', 'set_my_logger_file', 'set_python_in_interactive', 'set_python_in_jupyter', 'sgplot', 'spend_time', 'start_spot_agent', 'stop_spot_agent', 'sys', 'sys_performance', 'sysplot', 'talib_wrap', 'time', 'timedelta', 'timeout', 'timezone', 'toPriceList', 'traceback', 'trade', 'trade_manage', 'trade_sys', 'tzinfo', 'update_hub', 'util', 'with_trace', 'ylabel']
|
|
618
625
|
class StockFuncFormatter:
|
|
619
626
|
"""
|
|
620
627
|
用于坐标轴显示日期
|
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
|
# ------------------------------------------------------------------
|