hikyuu 2.7.3__py3-none-win_amd64.whl → 2.7.5__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hikyuu/__init__.py +3 -1
- hikyuu/__init__.pyi +14 -13
- hikyuu/analysis/__init__.pyi +1 -0
- hikyuu/analysis/analysis.pyi +2 -1
- hikyuu/core.pyi +3 -2
- hikyuu/cpp/core310.pyd +0 -0
- hikyuu/cpp/core310.pyi +80 -46
- hikyuu/cpp/core311.pyd +0 -0
- hikyuu/cpp/core311.pyi +80 -46
- hikyuu/cpp/core312.pyd +0 -0
- hikyuu/cpp/core312.pyi +80 -46
- hikyuu/cpp/core313.pyd +0 -0
- hikyuu/cpp/core313.pyi +80 -46
- hikyuu/cpp/hikyuu.dll +0 -0
- hikyuu/cpp/hikyuu.lib +0 -0
- hikyuu/cpp/mimalloc-redirect.dll +0 -0
- hikyuu/cpp/mimalloc.dll +0 -0
- hikyuu/data/clickhouse_upgrade/0002.sql +9 -0
- hikyuu/data/common_mysql.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 +1 -1
- hikyuu/data/mysql_upgrade/0030.sql +3 -0
- hikyuu/data/pytdx_to_h5.py +2 -2
- hikyuu/data/pytdx_to_mysql.py +5 -5
- hikyuu/data/sqlite_upgrade/0030.sql +5 -0
- hikyuu/draw/__init__.pyi +1 -1
- hikyuu/draw/drawplot/__init__.pyi +1 -1
- hikyuu/draw/drawplot/bokeh_draw.pyi +7 -6
- hikyuu/draw/drawplot/echarts_draw.pyi +7 -6
- hikyuu/draw/drawplot/matplotlib_draw.py +19 -11
- hikyuu/draw/drawplot/matplotlib_draw.pyi +7 -6
- 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 +4 -3
- 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 +11 -10
- hikyuu/include/hikyuu/StockTypeInfo.h +9 -9
- hikyuu/include/hikyuu/StockWeight.h +9 -9
- hikyuu/include/hikyuu/TimeLineRecord.h +1 -1
- hikyuu/include/hikyuu/TransRecord.h +1 -1
- hikyuu/include/hikyuu/data_driver/BlockInfoDriver.h +6 -0
- hikyuu/include/hikyuu/data_driver/KDataDriver.h +4 -3
- 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 +146 -73
- 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/hkuextra.h +2 -0
- hikyuu/include/hikyuu/plugin/interface/HkuExtraPluginInterface.h +2 -0
- hikyuu/include/hikyuu/python/pybind_utils.h +22 -5
- hikyuu/include/hikyuu/trade_manage/TradeCostBase.h +5 -3
- hikyuu/include/hikyuu/trade_manage/TradeManagerBase.h +9 -2
- hikyuu/include/hikyuu/trade_sys/allocatefunds/AllocateFundsBase.h +8 -3
- hikyuu/include/hikyuu/trade_sys/condition/ConditionBase.h +5 -2
- hikyuu/include/hikyuu/trade_sys/environment/EnvironmentBase.h +6 -2
- hikyuu/include/hikyuu/trade_sys/moneymanager/MoneyManagerBase.h +5 -2
- hikyuu/include/hikyuu/trade_sys/multifactor/MultiFactorBase.h +23 -19
- hikyuu/include/hikyuu/trade_sys/multifactor/NormalizeBase.h +6 -3
- hikyuu/include/hikyuu/trade_sys/multifactor/ScoresFilterBase.h +5 -2
- 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 +5 -2
- hikyuu/include/hikyuu/trade_sys/profitgoal/ProfitGoalBase.h +4 -2
- hikyuu/include/hikyuu/trade_sys/selector/SelectorBase.h +12 -2
- 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 -2
- hikyuu/include/hikyuu/trade_sys/slippage/SlippageBase.h +5 -2
- hikyuu/include/hikyuu/trade_sys/stoploss/StoplossBase.h +5 -2
- hikyuu/include/hikyuu/trade_sys/system/System.h +5 -2
- hikyuu/include/hikyuu/utilities/LruCache.h +299 -0
- hikyuu/include/hikyuu/utilities/arithmetic.h +2 -2
- hikyuu/include/hikyuu/utilities/omp_macro.h +25 -0
- hikyuu/include/hikyuu/utilities/plugin/PluginManager.h +5 -0
- hikyuu/include/hikyuu/utilities/thread/GlobalStealThreadPool.h +72 -19
- hikyuu/include/hikyuu/utilities/thread/GlobalThreadPool.h +0 -4
- hikyuu/include/hikyuu/utilities/thread/ThreadPool.h +0 -4
- hikyuu/include/hikyuu/utilities/thread/algorithm.h +286 -0
- hikyuu/include/hikyuu/version.h +4 -4
- hikyuu/plugin/backtest.dll +0 -0
- hikyuu/plugin/checkdata.dll +0 -0
- hikyuu/plugin/clickhousedriver.dll +0 -0
- hikyuu/plugin/dataserver.dll +0 -0
- hikyuu/plugin/dataserver_parquet.dll +0 -0
- hikyuu/plugin/device.dll +0 -0
- hikyuu/plugin/extind.dll +0 -0
- hikyuu/plugin/hkuextra.dll +0 -0
- hikyuu/plugin/import2ch.dll +0 -0
- hikyuu/plugin/import2hdf5.dll +0 -0
- hikyuu/plugin/import2mysql.dll +0 -0
- hikyuu/plugin/tmreport.dll +0 -0
- hikyuu/test/Indicator.py +1 -2
- hikyuu/trade_manage/__init__.pyi +6 -5
- hikyuu/trade_manage/trade.pyi +6 -5
- hikyuu/util/__init__.pyi +1 -1
- hikyuu/util/singleton.pyi +1 -1
- {hikyuu-2.7.3.dist-info → hikyuu-2.7.5.dist-info}/METADATA +2 -13
- {hikyuu-2.7.3.dist-info → hikyuu-2.7.5.dist-info}/RECORD +217 -210
- {hikyuu-2.7.3.dist-info → hikyuu-2.7.5.dist-info}/WHEEL +1 -1
- {hikyuu-2.7.3.dist-info → hikyuu-2.7.5.dist-info}/entry_points.txt +0 -0
- {hikyuu-2.7.3.dist-info → hikyuu-2.7.5.dist-info}/top_level.txt +0 -0
|
@@ -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:
|
|
@@ -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
|
};
|