mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 10:59:43 +08:00
update
This commit is contained in:
parent
cf2d987c52
commit
be327070ca
@ -79,7 +79,7 @@ def draw(stock, query = Query(-130),
|
||||
slow_op = EMA(n = 2*n)(fast_op)
|
||||
sg = SG_Cross(fast_op, slow_op)
|
||||
sg.plot(axes = ax1, kdata = kdata)
|
||||
ind = slow_op(KDATA(kdata))
|
||||
ind = slow_op(kdata)
|
||||
ind.name = "EMA(CAMA)"
|
||||
ind.plot(axes = ax1, color = 'm', legend_on = True)
|
||||
|
||||
|
@ -18,7 +18,7 @@ Vigor::Vigor(): IndicatorImp("VIGOR", 1) {
|
||||
}
|
||||
|
||||
Vigor::Vigor(int n): IndicatorImp() {
|
||||
setParam<int>("n", 2);
|
||||
setParam<int>("n", n);
|
||||
}
|
||||
|
||||
|
||||
|
@ -62,6 +62,7 @@ void export_Indicator() {
|
||||
.def("get", &Indicator::get, get_overloads())
|
||||
.def("getResult", &Indicator::getResult)
|
||||
.def("getResultAsPriceList", &Indicator::getResultAsPriceList)
|
||||
.def("getCurrentKData", &Indicator::getCurrentKData)
|
||||
.def("__len__", &Indicator::size)
|
||||
.def("__call__", &Indicator::operator())
|
||||
#if HKU_PYTHON_SUPPORT_PICKLE
|
||||
|
Loading…
Reference in New Issue
Block a user