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
|
@@ -21,6 +21,9 @@ public:
|
|
|
21
21
|
IBlockSetNum();
|
|
22
22
|
virtual ~IBlockSetNum();
|
|
23
23
|
virtual void _checkParam(const string& name) const override;
|
|
24
|
+
|
|
25
|
+
virtual bool supportIncrementCalculate() const override;
|
|
26
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
} // namespace hku
|
|
@@ -21,9 +21,6 @@ public:
|
|
|
21
21
|
virtual string formula() const override;
|
|
22
22
|
virtual void _calculate(const Indicator& data) override;
|
|
23
23
|
virtual IndicatorImpPtr _clone() override;
|
|
24
|
-
virtual bool needSelfAlikeCompare() const noexcept override {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
24
|
|
|
28
25
|
virtual bool selfAlike(const IndicatorImp& other) const noexcept override;
|
|
29
26
|
|
|
@@ -21,6 +21,9 @@ public:
|
|
|
21
21
|
virtual ~ICorr();
|
|
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
|
|
@@ -16,12 +16,10 @@ namespace hku {
|
|
|
16
16
|
/* COST(k, X) 表示X%获利盘的价格是多少 */
|
|
17
17
|
class ICost : public IndicatorImp {
|
|
18
18
|
INDICATOR_IMP(ICost)
|
|
19
|
-
INDICATOR_NEED_CONTEXT
|
|
20
19
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
20
|
|
|
22
21
|
public:
|
|
23
22
|
ICost();
|
|
24
|
-
ICost(const KData&, double percent);
|
|
25
23
|
virtual ~ICost();
|
|
26
24
|
virtual void _checkParam(const string& name) const override;
|
|
27
25
|
};
|
|
@@ -19,7 +19,8 @@ namespace hku {
|
|
|
19
19
|
* COUNT(CLOSE>OPEN,20)表示统计20周期内收阳的周期数
|
|
20
20
|
*/
|
|
21
21
|
class ICount : public IndicatorImp {
|
|
22
|
-
|
|
22
|
+
INDICATOR_IMP(ICount)
|
|
23
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
23
24
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
24
25
|
|
|
25
26
|
public:
|
|
@@ -15,6 +15,7 @@ namespace hku {
|
|
|
15
15
|
|
|
16
16
|
class ICval : public IndicatorImp {
|
|
17
17
|
INDICATOR_IMP(ICval)
|
|
18
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
18
19
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
19
20
|
|
|
20
21
|
public:
|
|
@@ -23,10 +24,6 @@ public:
|
|
|
23
24
|
virtual ~ICval();
|
|
24
25
|
virtual void _checkParam(const string& name) const override;
|
|
25
26
|
|
|
26
|
-
virtual bool needSelfAlikeCompare() const noexcept override {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
27
|
virtual bool selfAlike(const IndicatorImp& other) const noexcept override;
|
|
31
28
|
};
|
|
32
29
|
|
|
@@ -14,12 +14,10 @@ namespace hku {
|
|
|
14
14
|
/* 获取换手率,等于 VOL(k) / CAPITAL(k) */
|
|
15
15
|
class ICycle : public IndicatorImp {
|
|
16
16
|
INDICATOR_IMP(ICycle)
|
|
17
|
-
INDICATOR_NEED_CONTEXT
|
|
18
17
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
19
18
|
|
|
20
19
|
public:
|
|
21
20
|
ICycle();
|
|
22
|
-
explicit ICycle(const KData&);
|
|
23
21
|
virtual ~ICycle();
|
|
24
22
|
virtual void _checkParam(const string& name) const override;
|
|
25
23
|
|
|
@@ -23,6 +23,9 @@ public:
|
|
|
23
23
|
IDecline();
|
|
24
24
|
virtual ~IDecline();
|
|
25
25
|
virtual void _checkParam(const string& name) const override;
|
|
26
|
+
|
|
27
|
+
virtual bool supportIncrementCalculate() const override;
|
|
28
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
26
29
|
};
|
|
27
30
|
|
|
28
31
|
} /* namespace hku */
|
|
@@ -16,13 +16,16 @@
|
|
|
16
16
|
namespace hku {
|
|
17
17
|
|
|
18
18
|
class IDevsq : public hku::IndicatorImp {
|
|
19
|
-
|
|
19
|
+
INDICATOR_IMP(IDevsq)
|
|
20
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
21
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
20
22
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
23
|
|
|
22
24
|
public:
|
|
23
25
|
IDevsq();
|
|
24
26
|
virtual ~IDevsq();
|
|
25
27
|
virtual void _checkParam(const string& name) const override;
|
|
28
|
+
virtual size_t min_increment_start() const override;
|
|
26
29
|
};
|
|
27
30
|
|
|
28
31
|
} /* namespace hku */
|
|
@@ -19,12 +19,14 @@ namespace hku {
|
|
|
19
19
|
*/
|
|
20
20
|
class IDma : public Indicator2InImp {
|
|
21
21
|
INDICATOR2IN_IMP(IDma)
|
|
22
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
22
23
|
INDICATOR2IN_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
23
24
|
|
|
24
25
|
public:
|
|
25
26
|
IDma();
|
|
26
27
|
explicit IDma(const Indicator& ref_a, bool fill_null);
|
|
27
28
|
virtual ~IDma();
|
|
29
|
+
virtual size_t min_increment_start() const override;
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
} // namespace hku
|
|
@@ -23,10 +23,6 @@ public:
|
|
|
23
23
|
IDropna();
|
|
24
24
|
virtual ~IDropna();
|
|
25
25
|
|
|
26
|
-
virtual bool needSelfAlikeCompare() const noexcept override {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
26
|
// 禁止子节点合并, 上级默认已为 false
|
|
31
27
|
// virtual bool selfAlike(const IndicatorImp& other) const noexcept override {
|
|
32
28
|
// return false;
|
|
@@ -17,7 +17,9 @@ namespace hku {
|
|
|
17
17
|
* 抛弃数 = 0
|
|
18
18
|
*/
|
|
19
19
|
class IEma : public IndicatorImp {
|
|
20
|
-
|
|
20
|
+
INDICATOR_IMP(IEma)
|
|
21
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
22
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
21
23
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
22
24
|
|
|
23
25
|
public:
|
|
@@ -19,13 +19,17 @@ namespace hku {
|
|
|
19
19
|
* 一直存在, EVERY (X,N) 表示条件X在N周期一直存在
|
|
20
20
|
*/
|
|
21
21
|
class IEvery : public IndicatorImp {
|
|
22
|
-
|
|
22
|
+
INDICATOR_IMP(IEvery)
|
|
23
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
23
24
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
24
25
|
|
|
25
26
|
public:
|
|
26
27
|
IEvery();
|
|
27
28
|
virtual ~IEvery();
|
|
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
|
* 存在, EXIST(X,N) 表示条件X在N周期有存在
|
|
20
20
|
*/
|
|
21
21
|
class IExist : public IndicatorImp {
|
|
22
|
-
|
|
22
|
+
INDICATOR_IMP(IExist)
|
|
23
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
23
24
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
24
25
|
|
|
25
26
|
public:
|
|
26
27
|
IExist();
|
|
27
28
|
virtual ~IExist();
|
|
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 */
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
namespace hku {
|
|
17
17
|
|
|
18
18
|
class IFilter : public IndicatorImp {
|
|
19
|
-
|
|
19
|
+
INDICATOR_IMP(IFilter)
|
|
20
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
20
21
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
22
|
|
|
22
23
|
public:
|
|
@@ -24,10 +25,8 @@ public:
|
|
|
24
25
|
virtual ~IFilter();
|
|
25
26
|
|
|
26
27
|
virtual void _checkParam(const string& name) const override;
|
|
27
|
-
|
|
28
|
-
virtual
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
28
|
+
virtual bool supportIncrementCalculate() const override;
|
|
29
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
31
30
|
};
|
|
32
31
|
|
|
33
32
|
} /* namespace hku */
|
|
@@ -13,12 +13,11 @@ namespace hku {
|
|
|
13
13
|
|
|
14
14
|
class IFinance : public IndicatorImp {
|
|
15
15
|
INDICATOR_IMP(IFinance)
|
|
16
|
-
|
|
16
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
17
17
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
18
18
|
|
|
19
19
|
public:
|
|
20
20
|
IFinance();
|
|
21
|
-
explicit IFinance(const KData&);
|
|
22
21
|
virtual ~IFinance() = default;
|
|
23
22
|
};
|
|
24
23
|
|
|
@@ -16,13 +16,17 @@
|
|
|
16
16
|
namespace hku {
|
|
17
17
|
|
|
18
18
|
class IHhvbars : public IndicatorImp {
|
|
19
|
-
|
|
19
|
+
INDICATOR_IMP(IHhvbars)
|
|
20
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
20
21
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
22
|
|
|
22
23
|
public:
|
|
23
24
|
IHhvbars();
|
|
24
25
|
virtual ~IHhvbars();
|
|
25
26
|
virtual void _checkParam(const string& name) const override;
|
|
27
|
+
virtual bool supportIncrementCalculate() const override;
|
|
28
|
+
virtual size_t min_increment_start() const override;
|
|
29
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
} /* namespace hku */
|
|
@@ -20,13 +20,17 @@ namespace hku {
|
|
|
20
20
|
* 参数: n: N日时间窗口
|
|
21
21
|
*/
|
|
22
22
|
class IHighLine : public IndicatorImp {
|
|
23
|
-
|
|
23
|
+
INDICATOR_IMP(IHighLine)
|
|
24
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
24
25
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
25
26
|
|
|
26
27
|
public:
|
|
27
28
|
IHighLine();
|
|
28
29
|
virtual ~IHighLine();
|
|
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 */
|
|
@@ -16,12 +16,10 @@ namespace hku {
|
|
|
16
16
|
/* 获取换手率,等于 VOL(k) / CAPITAL(k) */
|
|
17
17
|
class IHsl : public IndicatorImp {
|
|
18
18
|
INDICATOR_IMP(IHsl)
|
|
19
|
-
INDICATOR_NEED_CONTEXT
|
|
20
19
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
20
|
|
|
22
21
|
public:
|
|
23
22
|
IHsl();
|
|
24
|
-
explicit IHsl(const KData&);
|
|
25
23
|
virtual ~IHsl();
|
|
26
24
|
};
|
|
27
25
|
|
|
@@ -14,17 +14,16 @@ namespace hku {
|
|
|
14
14
|
class IIc : public IndicatorImp {
|
|
15
15
|
public:
|
|
16
16
|
IIc();
|
|
17
|
-
IIc(const StockList& stks,
|
|
18
|
-
bool strict);
|
|
17
|
+
IIc(const StockList& stks, int n, bool spearman, bool strict);
|
|
19
18
|
virtual ~IIc();
|
|
20
19
|
|
|
21
20
|
virtual void _checkParam(const string& name) const override;
|
|
22
21
|
virtual void _calculate(const Indicator& data) override;
|
|
23
22
|
virtual IndicatorImpPtr _clone() override;
|
|
24
23
|
|
|
24
|
+
virtual bool selfAlike(const IndicatorImp& other) const noexcept override;
|
|
25
|
+
|
|
25
26
|
private:
|
|
26
|
-
KQuery m_query;
|
|
27
|
-
Stock m_ref_stk;
|
|
28
27
|
StockList m_stks;
|
|
29
28
|
|
|
30
29
|
//============================================
|
|
@@ -36,8 +35,6 @@ private:
|
|
|
36
35
|
template <class Archive>
|
|
37
36
|
void serialize(Archive& ar, const unsigned int version) {
|
|
38
37
|
ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(IndicatorImp);
|
|
39
|
-
ar& BOOST_SERIALIZATION_NVP(m_query);
|
|
40
|
-
ar& BOOST_SERIALIZATION_NVP(m_ref_stk);
|
|
41
38
|
ar& BOOST_SERIALIZATION_NVP(m_stks);
|
|
42
39
|
}
|
|
43
40
|
#endif
|
|
@@ -16,12 +16,11 @@ namespace hku {
|
|
|
16
16
|
/* 已指标形式返回是否在指定板块中 */
|
|
17
17
|
class IInBlock : public IndicatorImp {
|
|
18
18
|
INDICATOR_IMP(IInBlock)
|
|
19
|
-
|
|
19
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
20
20
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
21
|
|
|
22
22
|
public:
|
|
23
23
|
IInBlock();
|
|
24
|
-
explicit IInBlock(const KData& kdata, const string& category, const string& name);
|
|
25
24
|
virtual ~IInBlock();
|
|
26
25
|
};
|
|
27
26
|
|
|
@@ -15,12 +15,11 @@ namespace hku {
|
|
|
15
15
|
|
|
16
16
|
class IKData : public IndicatorImp {
|
|
17
17
|
INDICATOR_IMP(IKData)
|
|
18
|
-
|
|
18
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
19
19
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
20
20
|
|
|
21
21
|
public:
|
|
22
22
|
IKData();
|
|
23
|
-
IKData(const KData&, const string&);
|
|
24
23
|
virtual ~IKData();
|
|
25
24
|
virtual void _checkParam(const string& name) const override;
|
|
26
25
|
};
|
|
@@ -15,12 +15,10 @@ namespace hku {
|
|
|
15
15
|
|
|
16
16
|
class ILiuTongPan : public IndicatorImp {
|
|
17
17
|
INDICATOR_IMP(ILiuTongPan)
|
|
18
|
-
INDICATOR_NEED_CONTEXT
|
|
19
18
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
20
19
|
|
|
21
20
|
public:
|
|
22
21
|
ILiuTongPan();
|
|
23
|
-
explicit ILiuTongPan(const KData&);
|
|
24
22
|
virtual ~ILiuTongPan();
|
|
25
23
|
};
|
|
26
24
|
|
|
@@ -16,13 +16,17 @@
|
|
|
16
16
|
namespace hku {
|
|
17
17
|
|
|
18
18
|
class ILowLine : public IndicatorImp {
|
|
19
|
-
|
|
19
|
+
INDICATOR_IMP(ILowLine)
|
|
20
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
20
21
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
22
|
|
|
22
23
|
public:
|
|
23
24
|
ILowLine();
|
|
24
25
|
virtual ~ILowLine();
|
|
25
26
|
virtual void _checkParam(const string& name) const override;
|
|
27
|
+
virtual bool supportIncrementCalculate() const override;
|
|
28
|
+
virtual size_t min_increment_start() 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 ILowLineBars : public IndicatorImp {
|
|
19
|
-
|
|
19
|
+
INDICATOR_IMP(ILowLineBars)
|
|
20
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
20
21
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
21
22
|
|
|
22
23
|
public:
|
|
23
24
|
ILowLineBars();
|
|
24
25
|
virtual ~ILowLineBars();
|
|
25
26
|
virtual void _checkParam(const string& name) const override;
|
|
27
|
+
virtual bool supportIncrementCalculate() const override;
|
|
28
|
+
virtual size_t min_increment_start() const override;
|
|
29
|
+
virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
} /* namespace hku */
|
|
@@ -14,13 +14,18 @@
|
|
|
14
14
|
namespace hku {
|
|
15
15
|
|
|
16
16
|
class IMa : public IndicatorImp {
|
|
17
|
-
|
|
17
|
+
INDICATOR_IMP(IMa)
|
|
18
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
18
19
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
19
20
|
|
|
20
21
|
public:
|
|
21
22
|
IMa();
|
|
22
23
|
virtual ~IMa();
|
|
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 */
|
|
@@ -24,6 +24,7 @@ namespace hku {
|
|
|
24
24
|
*/
|
|
25
25
|
class IMacd : public IndicatorImp {
|
|
26
26
|
INDICATOR_IMP(IMacd)
|
|
27
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
27
28
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
28
29
|
|
|
29
30
|
public:
|
|
@@ -32,6 +33,7 @@ public:
|
|
|
32
33
|
|
|
33
34
|
virtual void _checkParam(const string& name) const override;
|
|
34
35
|
virtual void _dyn_calculate(const Indicator&) override;
|
|
36
|
+
virtual size_t min_increment_start() const override;
|
|
35
37
|
|
|
36
38
|
private:
|
|
37
39
|
void _dyn_one_circle(const Indicator& ind, size_t curPos, int n1, int n2, int n3);
|
|
@@ -19,7 +19,9 @@ namespace hku {
|
|
|
19
19
|
* 乘幂
|
|
20
20
|
*/
|
|
21
21
|
class IPow : public IndicatorImp {
|
|
22
|
-
|
|
22
|
+
INDICATOR_IMP(IPow)
|
|
23
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
24
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
23
25
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
24
26
|
|
|
25
27
|
public:
|
|
@@ -24,6 +24,9 @@ public:
|
|
|
24
24
|
virtual void _checkParam(const string& name) const override;
|
|
25
25
|
|
|
26
26
|
static void checkInputIndicator(const Indicator& ind);
|
|
27
|
+
|
|
28
|
+
// virtual bool supportIncrementCalculate() const override;
|
|
29
|
+
// virtual void _increment_calculate(const Indicator& ind, size_t start_pos) override;
|
|
27
30
|
};
|
|
28
31
|
|
|
29
32
|
} // namespace hku
|
|
@@ -20,7 +20,9 @@ namespace hku {
|
|
|
20
20
|
* 例如: REF(CLOSE,1) 表示上一周期的收盘价,在日线上就是昨收。
|
|
21
21
|
*/
|
|
22
22
|
class IRef : public IndicatorImp {
|
|
23
|
-
|
|
23
|
+
INDICATOR_IMP(IRef)
|
|
24
|
+
INDICATOR_IMP_SUPPORT_INCREMENT
|
|
25
|
+
INDICATOR_IMP_SUPPORT_DYNAMIC_CYCLE
|
|
24
26
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
25
27
|
|
|
26
28
|
public:
|