hikyuu 2.7.0__py3-none-manylinux2014_aarch64.whl → 2.7.5__py3-none-manylinux2014_aarch64.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 +28 -8
- hikyuu/__init__.pyi +26 -14
- hikyuu/analysis/__init__.pyi +7 -1
- hikyuu/analysis/analysis.pyi +8 -2
- hikyuu/core.pyi +9 -3
- hikyuu/cpp/core310.pyi +172 -68
- hikyuu/cpp/core310.so +0 -0
- hikyuu/cpp/core311.pyi +172 -68
- hikyuu/cpp/core311.so +0 -0
- hikyuu/cpp/core312.pyi +172 -68
- hikyuu/cpp/core312.so +0 -0
- hikyuu/cpp/core313.pyi +172 -68
- hikyuu/cpp/core313.so +0 -0
- hikyuu/cpp/i18n/zh_CN/hikyuu.mo +0 -0
- hikyuu/cpp/i18n/zh_CN/hikyuu_plugin.mo +0 -0
- hikyuu/cpp/libboost_atomic.so +0 -0
- hikyuu/cpp/libboost_atomic.so.1.90.0 +0 -0
- hikyuu/cpp/{libboost_charconv-mt.so → libboost_charconv.so} +0 -0
- hikyuu/cpp/{libboost_charconv-mt.so.1.88.0 → libboost_charconv.so.1.90.0} +0 -0
- hikyuu/cpp/libboost_chrono.so +0 -0
- hikyuu/cpp/libboost_chrono.so.1.90.0 +0 -0
- hikyuu/cpp/libboost_container.so +0 -0
- hikyuu/cpp/libboost_container.so.1.90.0 +0 -0
- hikyuu/cpp/libboost_date_time.so +0 -0
- hikyuu/cpp/libboost_date_time.so.1.90.0 +0 -0
- hikyuu/cpp/libboost_locale.so +0 -0
- hikyuu/cpp/libboost_locale.so.1.90.0 +0 -0
- hikyuu/cpp/libboost_random.so +0 -0
- hikyuu/cpp/libboost_random.so.1.90.0 +0 -0
- hikyuu/cpp/libboost_serialization.so +0 -0
- hikyuu/cpp/libboost_serialization.so.1.90.0 +0 -0
- hikyuu/cpp/libboost_thread.so +0 -0
- hikyuu/cpp/libboost_thread.so.1.90.0 +0 -0
- hikyuu/cpp/libboost_wserialization.so +0 -0
- hikyuu/cpp/libboost_wserialization.so.1.90.0 +0 -0
- hikyuu/cpp/libhikyuu.so +0 -0
- hikyuu/cpp/libmimalloc.so +0 -0
- hikyuu/cpp/libmimalloc.so.3 +0 -0
- hikyuu/cpp/libmimalloc.so.3.1 +0 -0
- hikyuu/cpp/libsqlite3.so +0 -0
- hikyuu/data/clickhouse_upgrade/0001.sql +2 -0
- hikyuu/data/clickhouse_upgrade/0002.sql +9 -0
- hikyuu/data/common_clickhouse.py +1 -3
- hikyuu/data/common_mysql.py +1 -1
- hikyuu/data/download_block.py +1 -1
- hikyuu/data/em_block_to_mysql.py +16 -4
- hikyuu/data/em_block_to_sqlite.py +16 -4
- hikyuu/data/hku_config_template.py +31 -4
- hikyuu/data/mysql_upgrade/0029.sql +2 -0
- hikyuu/data/mysql_upgrade/0030.sql +3 -0
- hikyuu/data/pytdx_to_clickhouse.py +86 -32
- hikyuu/data/pytdx_to_h5.py +73 -28
- hikyuu/data/pytdx_to_mysql.py +65 -21
- hikyuu/data/pytdx_weight_to_clickhouse.py +2 -0
- hikyuu/data/pytdx_weight_to_mysql.py +2 -0
- hikyuu/data/pytdx_weight_to_sqlite.py +2 -0
- hikyuu/data/sqlite_upgrade/0029.sql +4 -0
- hikyuu/data/sqlite_upgrade/0030.sql +5 -0
- hikyuu/data/tdx_to_clickhouse.py +2 -2
- hikyuu/data/tdx_to_h5.py +11 -11
- hikyuu/data/tdx_to_mysql.py +2 -2
- hikyuu/draw/__init__.pyi +1 -1
- hikyuu/draw/drawplot/__init__.pyi +1 -1
- hikyuu/draw/drawplot/bokeh_draw.pyi +17 -9
- hikyuu/draw/drawplot/echarts_draw.pyi +17 -9
- hikyuu/draw/drawplot/matplotlib_draw.py +23 -9
- hikyuu/draw/drawplot/matplotlib_draw.pyi +17 -9
- hikyuu/examples/notebook/001-overview.ipynb +112 -78
- hikyuu/examples/notebook/004-IndicatorOverview.ipynb +52 -65
- hikyuu/examples/notebook/006-TradeManager.ipynb +402 -291
- hikyuu/examples/notebook/008-Pickle.ipynb +25 -17
- hikyuu/examples/notebook/009-RealData.ipynb +36 -38
- hikyuu/examples/notebook/Demo/Demo2.ipynb +146 -116
- hikyuu/extend.pyi +10 -4
- hikyuu/gui/HikyuuTDX.py +42 -3
- hikyuu/gui/data/MainWindow.py +189 -129
- hikyuu/gui/data/UseTdxImportToH5Thread.py +4 -2
- hikyuu/gui/start_qmt.py +1 -1
- hikyuu/hub.pyi +6 -6
- hikyuu/include/hikyuu/Block.h +9 -9
- hikyuu/include/hikyuu/HistoryFinanceInfo.h +3 -3
- hikyuu/include/hikyuu/KData.h +51 -28
- hikyuu/include/hikyuu/KDataImp.h +12 -7
- hikyuu/include/hikyuu/KDataPrivatedBufferImp.h +13 -7
- hikyuu/include/hikyuu/KDataSharedBufferImp.h +8 -6
- hikyuu/include/hikyuu/KQuery.h +11 -11
- hikyuu/include/hikyuu/KRecord.h +1 -1
- hikyuu/include/hikyuu/MarketInfo.h +10 -10
- hikyuu/include/hikyuu/Stock.h +30 -30
- hikyuu/include/hikyuu/StockManager.h +28 -12
- hikyuu/include/hikyuu/StockTypeInfo.h +9 -9
- hikyuu/include/hikyuu/StockWeight.h +9 -9
- hikyuu/include/hikyuu/StrategyContext.h +4 -4
- hikyuu/include/hikyuu/TimeLineRecord.h +1 -1
- hikyuu/include/hikyuu/TransRecord.h +1 -1
- hikyuu/include/hikyuu/data_driver/BaseInfoDriver.h +2 -1
- hikyuu/include/hikyuu/data_driver/BlockInfoDriver.h +6 -0
- hikyuu/include/hikyuu/data_driver/KDataDriver.h +6 -7
- hikyuu/include/hikyuu/data_driver/kdata/mysql/MySQLKDataDriver.h +5 -1
- hikyuu/include/hikyuu/data_driver/kdata/sqlite/SQLiteKDataDriver.h +1 -1
- hikyuu/include/hikyuu/global/sysinfo.h +24 -5
- hikyuu/include/hikyuu/indicator/IndParam.h +1 -1
- hikyuu/include/hikyuu/indicator/Indicator.h +56 -27
- hikyuu/include/hikyuu/indicator/Indicator2InImp.h +0 -4
- hikyuu/include/hikyuu/indicator/IndicatorImp.h +147 -74
- hikyuu/include/hikyuu/indicator/crt/CONTEXT.h +11 -1
- hikyuu/include/hikyuu/indicator/crt/IC.h +19 -14
- hikyuu/include/hikyuu/indicator/crt/ICIR.h +4 -7
- hikyuu/include/hikyuu/indicator/imp/IAbs.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IAcos.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IAd.h +0 -2
- hikyuu/include/hikyuu/indicator/imp/IAdvance.h +3 -0
- hikyuu/include/hikyuu/indicator/imp/IAma.h +3 -0
- hikyuu/include/hikyuu/indicator/imp/IAsin.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IAtan.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IAtr.h +2 -3
- hikyuu/include/hikyuu/indicator/imp/IBackset.h +2 -4
- hikyuu/include/hikyuu/indicator/imp/IBlockSetNum.h +3 -0
- hikyuu/include/hikyuu/indicator/imp/ICeil.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IContext.h +0 -3
- hikyuu/include/hikyuu/indicator/imp/ICorr.h +3 -0
- hikyuu/include/hikyuu/indicator/imp/ICos.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/ICost.h +0 -2
- hikyuu/include/hikyuu/indicator/imp/ICount.h +2 -1
- hikyuu/include/hikyuu/indicator/imp/ICval.h +1 -4
- hikyuu/include/hikyuu/indicator/imp/ICycle.h +0 -2
- hikyuu/include/hikyuu/indicator/imp/IDecline.h +3 -0
- hikyuu/include/hikyuu/indicator/imp/IDevsq.h +4 -1
- hikyuu/include/hikyuu/indicator/imp/IDiff.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IDma.h +2 -0
- hikyuu/include/hikyuu/indicator/imp/IDropna.h +0 -4
- hikyuu/include/hikyuu/indicator/imp/IEma.h +3 -1
- hikyuu/include/hikyuu/indicator/imp/IEvery.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IExist.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IExp.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IFilter.h +4 -5
- hikyuu/include/hikyuu/indicator/imp/IFinance.h +1 -2
- hikyuu/include/hikyuu/indicator/imp/IFloor.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IHhvbars.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IHighLine.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IHsl.h +0 -2
- hikyuu/include/hikyuu/indicator/imp/IIc.h +3 -6
- hikyuu/include/hikyuu/indicator/imp/IInBlock.h +1 -2
- hikyuu/include/hikyuu/indicator/imp/IIntpart.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IIsInf.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IIsInfa.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IIsLastBar.h +0 -1
- hikyuu/include/hikyuu/indicator/imp/IIsNa.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IJumpDown.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IJumpUp.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IKData.h +1 -2
- hikyuu/include/hikyuu/indicator/imp/ILiuTongPan.h +0 -2
- hikyuu/include/hikyuu/indicator/imp/ILn.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/ILog.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/ILowLine.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/ILowLineBars.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IMa.h +6 -1
- hikyuu/include/hikyuu/indicator/imp/IMacd.h +2 -0
- hikyuu/include/hikyuu/indicator/imp/INot.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IPow.h +3 -1
- hikyuu/include/hikyuu/indicator/imp/IQuantileTrunc.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IRecover.h +3 -0
- hikyuu/include/hikyuu/indicator/imp/IRef.h +3 -1
- hikyuu/include/hikyuu/indicator/imp/IResult.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IReverse.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IRoc.h +6 -1
- hikyuu/include/hikyuu/indicator/imp/IRocp.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IRocr.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IRocr100.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IRound.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IRoundDown.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IRoundUp.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/ISaftyLoss.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/ISign.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/ISin.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/ISlope.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/ISma.h +2 -0
- hikyuu/include/hikyuu/indicator/imp/ISpearman.h +3 -0
- hikyuu/include/hikyuu/indicator/imp/ISqrt.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/IStdev.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IStdp.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/ISum.h +6 -1
- hikyuu/include/hikyuu/indicator/imp/ITan.h +1 -0
- hikyuu/include/hikyuu/indicator/imp/ITime.h +1 -2
- hikyuu/include/hikyuu/indicator/imp/ITimeLine.h +0 -2
- hikyuu/include/hikyuu/indicator/imp/ITr.h +1 -2
- hikyuu/include/hikyuu/indicator/imp/IVar.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IVarp.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IVigor.h +0 -2
- hikyuu/include/hikyuu/indicator/imp/IWma.h +5 -1
- hikyuu/include/hikyuu/indicator/imp/IZongGuBen.h +1 -2
- hikyuu/include/hikyuu/indicator_talib/imp/TaAdosc.h +0 -2
- hikyuu/include/hikyuu/indicator_talib/imp/TaSar.h +0 -2
- hikyuu/include/hikyuu/indicator_talib/imp/TaSarext.h +0 -4
- hikyuu/include/hikyuu/indicator_talib/imp/TaStoch.h +0 -3
- hikyuu/include/hikyuu/indicator_talib/imp/TaStochf.h +0 -2
- hikyuu/include/hikyuu/indicator_talib/imp/TaUltosc.h +0 -2
- hikyuu/include/hikyuu/indicator_talib/imp/ta_defines.h +2 -4
- hikyuu/include/hikyuu/indicator_talib/imp/ta_imp.h +70 -90
- hikyuu/include/hikyuu/plugin/KDataToClickHouseImporter.h +40 -0
- hikyuu/include/hikyuu/plugin/KDataToMySQLImporter.h +40 -0
- hikyuu/include/hikyuu/plugin/checkdata.h +20 -0
- hikyuu/include/hikyuu/plugin/extind.h +3 -0
- hikyuu/include/hikyuu/plugin/hkuextra.h +4 -0
- hikyuu/include/hikyuu/plugin/interface/CheckDataPluginInterface.h +25 -0
- hikyuu/include/hikyuu/plugin/interface/HkuExtraPluginInterface.h +4 -0
- hikyuu/include/hikyuu/plugin/interface/ImportKDataToClickHousePluginInterface.h +44 -0
- hikyuu/include/hikyuu/plugin/interface/ImportKDataToMySQLPluginInterface.h +42 -0
- hikyuu/include/hikyuu/plugin/interface/plugins.h +6 -0
- hikyuu/include/hikyuu/python/convert_any.h +9 -6
- hikyuu/include/hikyuu/python/pybind_utils.h +22 -5
- hikyuu/include/hikyuu/strategy/Strategy.h +1 -1
- hikyuu/include/hikyuu/trade_manage/TradeCostBase.h +5 -3
- hikyuu/include/hikyuu/trade_manage/TradeManagerBase.h +9 -3
- hikyuu/include/hikyuu/trade_manage/TradeRecord.h +2 -1
- hikyuu/include/hikyuu/trade_sys/allocatefunds/AllocateFundsBase.h +8 -4
- hikyuu/include/hikyuu/trade_sys/allocatefunds/build_in.h +1 -0
- hikyuu/include/hikyuu/trade_sys/allocatefunds/crt/AF_FixedAmount.h +26 -0
- hikyuu/include/hikyuu/trade_sys/allocatefunds/imp/FixAmountFunds.h +18 -0
- hikyuu/include/hikyuu/trade_sys/condition/ConditionBase.h +5 -3
- hikyuu/include/hikyuu/trade_sys/environment/EnvironmentBase.h +6 -3
- hikyuu/include/hikyuu/trade_sys/moneymanager/MoneyManagerBase.h +5 -3
- hikyuu/include/hikyuu/trade_sys/multifactor/MultiFactorBase.h +23 -20
- hikyuu/include/hikyuu/trade_sys/multifactor/NormalizeBase.h +6 -4
- hikyuu/include/hikyuu/trade_sys/multifactor/ScoresFilterBase.h +5 -3
- hikyuu/include/hikyuu/trade_sys/multifactor/crt/MF_EqualWeight.h +3 -3
- hikyuu/include/hikyuu/trade_sys/multifactor/crt/MF_ICIRWeight.h +4 -4
- hikyuu/include/hikyuu/trade_sys/multifactor/crt/MF_ICWeight.h +4 -4
- hikyuu/include/hikyuu/trade_sys/multifactor/crt/MF_Weight.h +4 -4
- hikyuu/include/hikyuu/trade_sys/portfolio/Portfolio.h +16 -13
- hikyuu/include/hikyuu/trade_sys/profitgoal/ProfitGoalBase.h +13 -13
- hikyuu/include/hikyuu/trade_sys/selector/SelectorBase.h +12 -3
- hikyuu/include/hikyuu/trade_sys/selector/crt/SE_MultiFactor.h +1 -1
- hikyuu/include/hikyuu/trade_sys/selector/crt/SE_MultiFactor2.h +1 -1
- hikyuu/include/hikyuu/trade_sys/selector/imp/MultiFactorSelector.h +1 -0
- hikyuu/include/hikyuu/trade_sys/selector/imp/MultiFactorSelector2.h +1 -0
- hikyuu/include/hikyuu/trade_sys/selector/imp/optimal/OptimalSelectorBase.h +0 -2
- hikyuu/include/hikyuu/trade_sys/selector/imp/optimal/PerformanceOptimalSelector.h +0 -4
- hikyuu/include/hikyuu/trade_sys/signal/SignalBase.h +5 -3
- hikyuu/include/hikyuu/trade_sys/slippage/SlippageBase.h +5 -3
- hikyuu/include/hikyuu/trade_sys/stoploss/StoplossBase.h +5 -3
- hikyuu/include/hikyuu/trade_sys/system/System.h +6 -4
- hikyuu/include/hikyuu/utilities/Log.h +6 -7
- hikyuu/include/hikyuu/utilities/LruCache.h +299 -0
- hikyuu/include/hikyuu/utilities/Parameter.h +17 -0
- hikyuu/include/hikyuu/utilities/arithmetic.h +2 -2
- hikyuu/include/hikyuu/utilities/config.h +28 -0
- hikyuu/include/hikyuu/utilities/omp_macro.h +25 -0
- hikyuu/include/hikyuu/utilities/plugin/PluginBase.h +17 -2
- hikyuu/include/hikyuu/utilities/plugin/PluginManager.h +46 -22
- hikyuu/include/hikyuu/utilities/thread/GlobalStealThreadPool.h +71 -19
- hikyuu/include/hikyuu/utilities/thread/GlobalThreadPool.h +1 -5
- hikyuu/include/hikyuu/utilities/thread/MQStealThreadPool.h +286 -0
- hikyuu/include/hikyuu/utilities/thread/MQThreadPool.h +1 -0
- hikyuu/include/hikyuu/utilities/thread/StealThreadPool.h +297 -0
- hikyuu/include/hikyuu/utilities/thread/ThreadPool.h +1 -4
- hikyuu/include/hikyuu/utilities/thread/WorkStealQueue.h +9 -8
- hikyuu/include/hikyuu/utilities/thread/algorithm.h +350 -14
- hikyuu/include/hikyuu/version.h +4 -4
- hikyuu/plugin/libbacktest.so +0 -0
- hikyuu/plugin/libcheckdata.so +0 -0
- hikyuu/plugin/libclickhousedriver.so +0 -0
- hikyuu/plugin/libdataserver.so +0 -0
- hikyuu/plugin/libdataserver_parquet.so +0 -0
- hikyuu/plugin/libdevice.so +0 -0
- hikyuu/plugin/libextind.so +0 -0
- hikyuu/plugin/libhkuextra.so +0 -0
- hikyuu/plugin/libimport2ch.so +0 -0
- hikyuu/plugin/libimport2hdf5.so +0 -0
- hikyuu/plugin/libimport2mysql.so +0 -0
- hikyuu/plugin/libtmreport.so +0 -0
- hikyuu/test/Indicator.py +1 -2
- hikyuu/trade_manage/__init__.pyi +14 -8
- hikyuu/trade_manage/trade.pyi +14 -8
- hikyuu/trade_sys/trade_sys.py +54 -5
- hikyuu/util/__init__.pyi +2 -2
- hikyuu/util/singleton.pyi +1 -1
- {hikyuu-2.7.0.dist-info → hikyuu-2.7.5.dist-info}/METADATA +10 -4
- {hikyuu-2.7.0.dist-info → hikyuu-2.7.5.dist-info}/RECORD +282 -252
- hikyuu/cpp/libboost_chrono-mt.so +0 -0
- hikyuu/cpp/libboost_chrono-mt.so.1.88.0 +0 -0
- hikyuu/cpp/libboost_date_time-mt.so +0 -0
- hikyuu/cpp/libboost_date_time-mt.so.1.88.0 +0 -0
- hikyuu/cpp/libboost_serialization-mt.so +0 -0
- hikyuu/cpp/libboost_serialization-mt.so.1.88.0 +0 -0
- hikyuu/cpp/libboost_system-mt.so +0 -0
- hikyuu/cpp/libboost_system-mt.so.1.88.0 +0 -0
- hikyuu/cpp/libboost_thread-mt.so +0 -0
- hikyuu/cpp/libboost_thread-mt.so.1.88.0 +0 -0
- hikyuu/cpp/libboost_wserialization-mt.so +0 -0
- hikyuu/cpp/libboost_wserialization-mt.so.1.88.0 +0 -0
- hikyuu/data/pytdx_to_taos.py +0 -736
- {hikyuu-2.7.0.dist-info → hikyuu-2.7.5.dist-info}/WHEEL +0 -0
- {hikyuu-2.7.0.dist-info → hikyuu-2.7.5.dist-info}/entry_points.txt +0 -0
- {hikyuu-2.7.0.dist-info → hikyuu-2.7.5.dist-info}/top_level.txt +0 -0
|
@@ -15,14 +15,19 @@
|
|
|
15
15
|
|
|
16
16
|
namespace hku {
|
|
17
17
|
|
|
18
|
+
// 变动率指标 ((price / prevPrice)-1)*100
|
|
18
19
|
class IRoc : public hku::IndicatorImp {
|
|
19
|
-
|
|
20
|
+
INDICATOR_IMP(IRoc)
|
|
21
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
20
22
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
23
|
|
|
22
24
|
public:
|
|
23
25
|
IRoc();
|
|
24
26
|
virtual ~IRoc();
|
|
25
27
|
virtual void _checkParam(const string& name) const override;
|
|
28
|
+
|
|
29
|
+
virtual bool supportIncrementCalculate() const override;
|
|
30
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
26
31
|
};
|
|
27
32
|
|
|
28
33
|
} /* namespace hku */
|
|
@@ -16,13 +16,17 @@
|
|
|
16
16
|
namespace hku {
|
|
17
17
|
|
|
18
18
|
class IRocp : public hku::IndicatorImp {
|
|
19
|
-
|
|
19
|
+
INDICATOR_IMP(IRocp)
|
|
20
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
20
21
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
22
|
|
|
22
23
|
public:
|
|
23
24
|
IRocp();
|
|
24
25
|
virtual ~IRocp();
|
|
25
26
|
virtual void _checkParam(const string& name) const override;
|
|
27
|
+
|
|
28
|
+
virtual bool supportIncrementCalculate() const override;
|
|
29
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
} /* namespace hku */
|
|
@@ -16,13 +16,17 @@
|
|
|
16
16
|
namespace hku {
|
|
17
17
|
|
|
18
18
|
class IRocr : public hku::IndicatorImp {
|
|
19
|
-
|
|
19
|
+
INDICATOR_IMP(IRocr)
|
|
20
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
20
21
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
22
|
|
|
22
23
|
public:
|
|
23
24
|
IRocr();
|
|
24
25
|
virtual ~IRocr();
|
|
25
26
|
virtual void _checkParam(const string& name) const override;
|
|
27
|
+
|
|
28
|
+
virtual bool supportIncrementCalculate() const override;
|
|
29
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
} /* namespace hku */
|
|
@@ -16,13 +16,17 @@
|
|
|
16
16
|
namespace hku {
|
|
17
17
|
|
|
18
18
|
class IRocr100 : public hku::IndicatorImp {
|
|
19
|
-
|
|
19
|
+
INDICATOR_IMP(IRocr100)
|
|
20
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
20
21
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
22
|
|
|
22
23
|
public:
|
|
23
24
|
IRocr100();
|
|
24
25
|
virtual ~IRocr100();
|
|
25
26
|
virtual void _checkParam(const string& name) const override;
|
|
27
|
+
|
|
28
|
+
virtual bool supportIncrementCalculate() const override;
|
|
29
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
} /* namespace hku */
|
|
@@ -13,13 +13,17 @@ namespace hku {
|
|
|
13
13
|
|
|
14
14
|
// 计算线性回归斜率,N支持变量
|
|
15
15
|
class ISlope : public IndicatorImp {
|
|
16
|
-
|
|
16
|
+
INDICATOR_IMP(ISlope)
|
|
17
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
17
18
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
18
19
|
|
|
19
20
|
public:
|
|
20
21
|
ISlope();
|
|
21
22
|
virtual ~ISlope();
|
|
22
23
|
virtual void _checkParam(const string& name) const override;
|
|
24
|
+
virtual bool supportIncrementCalculate() const override;
|
|
25
|
+
virtual size_t min_increment_start() const override;
|
|
26
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
23
27
|
};
|
|
24
28
|
|
|
25
29
|
} // namespace hku
|
|
@@ -17,6 +17,7 @@ namespace hku {
|
|
|
17
17
|
|
|
18
18
|
class ISma : public IndicatorImp {
|
|
19
19
|
INDICATOR_IMP(ISma)
|
|
20
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
20
21
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
22
|
|
|
22
23
|
public:
|
|
@@ -25,6 +26,7 @@ public:
|
|
|
25
26
|
|
|
26
27
|
virtual void _checkParam(const string& name) const override;
|
|
27
28
|
virtual void _dyn_calculate(const Indicator&) override;
|
|
29
|
+
virtual size_t min_increment_start() const override;
|
|
28
30
|
|
|
29
31
|
private:
|
|
30
32
|
void _dyn_one_circle(const Indicator& ind, size_t curPos, int n, double m);
|
|
@@ -21,6 +21,9 @@ public:
|
|
|
21
21
|
virtual ~ISpearman();
|
|
22
22
|
|
|
23
23
|
virtual void _checkParam(const string& name) const override;
|
|
24
|
+
virtual bool supportIncrementCalculate() const override;
|
|
25
|
+
virtual size_t min_increment_start() const override;
|
|
26
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
} // namespace hku
|
|
@@ -19,13 +19,17 @@ namespace hku {
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
class IStdev : public hku::IndicatorImp {
|
|
22
|
-
|
|
22
|
+
INDICATOR_IMP(IStdev)
|
|
23
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
23
24
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
24
25
|
|
|
25
26
|
public:
|
|
26
27
|
IStdev();
|
|
27
28
|
virtual ~IStdev();
|
|
28
29
|
virtual void _checkParam(const string& name) const override;
|
|
30
|
+
virtual bool supportIncrementCalculate() const override;
|
|
31
|
+
virtual size_t min_increment_start() const override;
|
|
32
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
29
33
|
};
|
|
30
34
|
|
|
31
35
|
} /* namespace hku */
|
|
@@ -20,13 +20,17 @@ namespace hku {
|
|
|
20
20
|
* 参数: n: N日时间窗口
|
|
21
21
|
*/
|
|
22
22
|
class IStdp : public hku::IndicatorImp {
|
|
23
|
-
|
|
23
|
+
INDICATOR_IMP(IStdp)
|
|
24
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
24
25
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
25
26
|
|
|
26
27
|
public:
|
|
27
28
|
IStdp();
|
|
28
29
|
virtual ~IStdp();
|
|
29
30
|
virtual void _checkParam(const string& name) const override;
|
|
31
|
+
virtual bool supportIncrementCalculate() const override;
|
|
32
|
+
virtual size_t min_increment_start() const override;
|
|
33
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
30
34
|
};
|
|
31
35
|
|
|
32
36
|
} /* namespace hku */
|
|
@@ -14,13 +14,18 @@
|
|
|
14
14
|
namespace hku {
|
|
15
15
|
|
|
16
16
|
class ISum : public IndicatorImp {
|
|
17
|
-
|
|
17
|
+
INDICATOR_IMP(ISum)
|
|
18
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
18
19
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
19
20
|
|
|
20
21
|
public:
|
|
21
22
|
ISum();
|
|
22
23
|
virtual ~ISum();
|
|
23
24
|
virtual void _checkParam(const string& name) const override;
|
|
25
|
+
|
|
26
|
+
virtual bool supportIncrementCalculate() const override;
|
|
27
|
+
virtual size_t min_increment_start() const override;
|
|
28
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
24
29
|
};
|
|
25
30
|
|
|
26
31
|
} /* namespace hku */
|
|
@@ -18,12 +18,11 @@ namespace hku {
|
|
|
18
18
|
*/
|
|
19
19
|
class ITime : public IndicatorImp {
|
|
20
20
|
INDICATOR_IMP(ITime)
|
|
21
|
-
|
|
21
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
22
22
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
23
23
|
|
|
24
24
|
public:
|
|
25
25
|
ITime();
|
|
26
|
-
ITime(const KData&, const string& type);
|
|
27
26
|
virtual ~ITime();
|
|
28
27
|
virtual void _checkParam(const string& name) const override;
|
|
29
28
|
};
|
|
@@ -17,12 +17,10 @@ namespace hku {
|
|
|
17
17
|
|
|
18
18
|
class ITimeLine : public IndicatorImp {
|
|
19
19
|
INDICATOR_IMP(ITimeLine)
|
|
20
|
-
INDICATOR_NEED_CONTEXT
|
|
21
20
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
22
21
|
|
|
23
22
|
public:
|
|
24
23
|
ITimeLine();
|
|
25
|
-
explicit ITimeLine(const KData&);
|
|
26
24
|
virtual ~ITimeLine();
|
|
27
25
|
virtual void _checkParam(const string& name) const override;
|
|
28
26
|
};
|
|
@@ -21,12 +21,11 @@ namespace hku {
|
|
|
21
21
|
*/
|
|
22
22
|
class ITr : public IndicatorImp {
|
|
23
23
|
INDICATOR_IMP(ITr)
|
|
24
|
-
|
|
24
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
25
25
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
26
26
|
|
|
27
27
|
public:
|
|
28
28
|
ITr();
|
|
29
|
-
explicit ITr(const KData&);
|
|
30
29
|
virtual ~ITr();
|
|
31
30
|
};
|
|
32
31
|
|
|
@@ -19,13 +19,17 @@ namespace hku {
|
|
|
19
19
|
* 估算样本方差
|
|
20
20
|
*/
|
|
21
21
|
class IVar : public hku::IndicatorImp {
|
|
22
|
-
|
|
22
|
+
INDICATOR_IMP(IVar)
|
|
23
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
23
24
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
24
25
|
|
|
25
26
|
public:
|
|
26
27
|
IVar();
|
|
27
28
|
virtual ~IVar();
|
|
28
29
|
virtual void _checkParam(const string& name) const override;
|
|
30
|
+
virtual bool supportIncrementCalculate() const override;
|
|
31
|
+
virtual size_t min_increment_start() const override;
|
|
32
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
29
33
|
};
|
|
30
34
|
|
|
31
35
|
} /* namespace hku */
|
|
@@ -19,13 +19,17 @@ namespace hku {
|
|
|
19
19
|
* 估算总体样本方差
|
|
20
20
|
*/
|
|
21
21
|
class IVarp : public hku::IndicatorImp {
|
|
22
|
-
|
|
22
|
+
INDICATOR_IMP(IVarp)
|
|
23
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
23
24
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
24
25
|
|
|
25
26
|
public:
|
|
26
27
|
IVarp();
|
|
27
28
|
virtual ~IVarp();
|
|
28
29
|
virtual void _checkParam(const string& name) const override;
|
|
30
|
+
virtual bool supportIncrementCalculate() const override;
|
|
31
|
+
virtual size_t min_increment_start() const override;
|
|
32
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
29
33
|
};
|
|
30
34
|
|
|
31
35
|
} /* namespace hku */
|
|
@@ -21,12 +21,10 @@ namespace hku {
|
|
|
21
21
|
*/
|
|
22
22
|
class IVigor : public IndicatorImp {
|
|
23
23
|
INDICATOR_IMP(IVigor)
|
|
24
|
-
INDICATOR_NEED_CONTEXT
|
|
25
24
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
26
25
|
|
|
27
26
|
public:
|
|
28
27
|
IVigor();
|
|
29
|
-
explicit IVigor(int n);
|
|
30
28
|
virtual ~IVigor();
|
|
31
29
|
virtual void _checkParam(const string& name) const override;
|
|
32
30
|
};
|
|
@@ -17,13 +17,17 @@ namespace hku {
|
|
|
17
17
|
* WMA(X,N):X的N日加权移动平均.算法:Yn=(1*X1+2*X2+...+n*Xn)/(1+2+...+n)。
|
|
18
18
|
*/
|
|
19
19
|
class IWma : public IndicatorImp {
|
|
20
|
-
|
|
20
|
+
INDICATOR_IMP(IWma)
|
|
21
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
21
22
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
22
23
|
|
|
23
24
|
public:
|
|
24
25
|
IWma();
|
|
25
26
|
virtual ~IWma();
|
|
26
27
|
virtual void _checkParam(const string& name) const override;
|
|
28
|
+
virtual bool supportIncrementCalculate() const override;
|
|
29
|
+
virtual size_t min_increment_start() const override;
|
|
30
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
27
31
|
};
|
|
28
32
|
|
|
29
33
|
} /* namespace hku */
|
|
@@ -13,12 +13,11 @@ namespace hku {
|
|
|
13
13
|
|
|
14
14
|
class IZongGuBen : public IndicatorImp {
|
|
15
15
|
INDICATOR_IMP(IZongGuBen)
|
|
16
|
-
|
|
16
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
17
17
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
18
18
|
|
|
19
19
|
public:
|
|
20
20
|
IZongGuBen();
|
|
21
|
-
explicit IZongGuBen(const KData&);
|
|
22
21
|
virtual ~IZongGuBen();
|
|
23
22
|
};
|
|
24
23
|
|
|
@@ -13,12 +13,10 @@ namespace hku {
|
|
|
13
13
|
|
|
14
14
|
class TaAdosc : public IndicatorImp {
|
|
15
15
|
INDICATOR_IMP(TaAdosc)
|
|
16
|
-
INDICATOR_NEED_CONTEXT
|
|
17
16
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
18
17
|
|
|
19
18
|
public:
|
|
20
19
|
TaAdosc();
|
|
21
|
-
explicit TaAdosc(const KData&, int fast_n, int slow_n);
|
|
22
20
|
virtual ~TaAdosc() = default;
|
|
23
21
|
virtual void _checkParam(const string& name) const override;
|
|
24
22
|
};
|
|
@@ -13,12 +13,10 @@ namespace hku {
|
|
|
13
13
|
|
|
14
14
|
class TaSar : public IndicatorImp {
|
|
15
15
|
INDICATOR_IMP(TaSar)
|
|
16
|
-
INDICATOR_NEED_CONTEXT
|
|
17
16
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
18
17
|
|
|
19
18
|
public:
|
|
20
19
|
TaSar();
|
|
21
|
-
explicit TaSar(const KData&, double acceleration, double maximum);
|
|
22
20
|
virtual ~TaSar() = default;
|
|
23
21
|
virtual void _checkParam(const string& name) const override;
|
|
24
22
|
};
|
|
@@ -13,7 +13,6 @@ namespace hku {
|
|
|
13
13
|
|
|
14
14
|
class TaSarext : public IndicatorImp {
|
|
15
15
|
INDICATOR_IMP(TaSarext)
|
|
16
|
-
INDICATOR_NEED_CONTEXT
|
|
17
16
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
18
17
|
|
|
19
18
|
public:
|
|
@@ -21,9 +20,6 @@ public:
|
|
|
21
20
|
TaSarext(double startvalue, double offsetonreverse, double accelerationinitlong,
|
|
22
21
|
double accelerationlong, double accelerationmaxlong, double accelerationinitshort,
|
|
23
22
|
double accelerationshort, double accelerationmaxshort);
|
|
24
|
-
TaSarext(const KData&, double startvalue, double offsetonreverse, double accelerationinitlong,
|
|
25
|
-
double accelerationlong, double accelerationmaxlong, double accelerationinitshort,
|
|
26
|
-
double accelerationshort, double accelerationmaxshort);
|
|
27
23
|
virtual ~TaSarext() = default;
|
|
28
24
|
virtual void _checkParam(const string& name) const override;
|
|
29
25
|
};
|
|
@@ -13,13 +13,10 @@ namespace hku {
|
|
|
13
13
|
|
|
14
14
|
class TaStoch : public IndicatorImp {
|
|
15
15
|
INDICATOR_IMP(TaStoch)
|
|
16
|
-
INDICATOR_NEED_CONTEXT
|
|
17
16
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
18
17
|
|
|
19
18
|
public:
|
|
20
19
|
TaStoch();
|
|
21
|
-
explicit TaStoch(const KData&, int fastk_n, int slowk_n, int slowk_matype, int slowd_n,
|
|
22
|
-
int slowd_matype);
|
|
23
20
|
virtual ~TaStoch() = default;
|
|
24
21
|
virtual void _checkParam(const string& name) const override;
|
|
25
22
|
};
|
|
@@ -13,12 +13,10 @@ namespace hku {
|
|
|
13
13
|
|
|
14
14
|
class TaStochf : public IndicatorImp {
|
|
15
15
|
INDICATOR_IMP(TaStochf)
|
|
16
|
-
INDICATOR_NEED_CONTEXT
|
|
17
16
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
18
17
|
|
|
19
18
|
public:
|
|
20
19
|
TaStochf();
|
|
21
|
-
explicit TaStochf(const KData&, int fastk_n, int fastd_n, int fastd_matype);
|
|
22
20
|
virtual ~TaStochf() = default;
|
|
23
21
|
virtual void _checkParam(const string& name) const override;
|
|
24
22
|
};
|
|
@@ -13,12 +13,10 @@ namespace hku {
|
|
|
13
13
|
|
|
14
14
|
class TaUltosc : public IndicatorImp {
|
|
15
15
|
INDICATOR_IMP(TaUltosc)
|
|
16
|
-
INDICATOR_NEED_CONTEXT
|
|
17
16
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
18
17
|
|
|
19
18
|
public:
|
|
20
19
|
TaUltosc();
|
|
21
|
-
explicit TaUltosc(const KData&, int n1, int n2, int n3);
|
|
22
20
|
virtual ~TaUltosc() = default;
|
|
23
21
|
virtual void _checkParam(const string& name) const override;
|
|
24
22
|
};
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
|
|
23
23
|
#define TA_IN1_OUT_DYN_DEF(func) \
|
|
24
24
|
class Cls_##func : public IndicatorImp { \
|
|
25
|
-
|
|
25
|
+
INDICATOR_IMP(Cls_##func) \
|
|
26
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE \
|
|
26
27
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION \
|
|
27
28
|
\
|
|
28
29
|
public: \
|
|
@@ -56,7 +57,6 @@
|
|
|
56
57
|
#define TA_K_OUT_DEF(func) \
|
|
57
58
|
class Cls_##func : public IndicatorImp { \
|
|
58
59
|
INDICATOR_IMP(Cls_##func) \
|
|
59
|
-
INDICATOR_NEED_CONTEXT \
|
|
60
60
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION \
|
|
61
61
|
public: \
|
|
62
62
|
Cls_##func(); \
|
|
@@ -67,7 +67,6 @@
|
|
|
67
67
|
#define TA_K_OUT_N_DEF(func) \
|
|
68
68
|
class Cls_##func : public IndicatorImp { \
|
|
69
69
|
INDICATOR_IMP(Cls_##func) \
|
|
70
|
-
INDICATOR_NEED_CONTEXT \
|
|
71
70
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION \
|
|
72
71
|
public: \
|
|
73
72
|
Cls_##func(); \
|
|
@@ -79,7 +78,6 @@
|
|
|
79
78
|
#define TA_K_OUT_P_D_DEF(func) \
|
|
80
79
|
class Cls_##func : public IndicatorImp { \
|
|
81
80
|
INDICATOR_IMP(Cls_##func) \
|
|
82
|
-
INDICATOR_NEED_CONTEXT \
|
|
83
81
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION \
|
|
84
82
|
public: \
|
|
85
83
|
Cls_##func(); \
|