mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-02 11:58:21 +08:00
commit
6a61e2325a
@ -113,7 +113,7 @@ void IndicatorImp::initContext() {
|
|||||||
|
|
||||||
void IndicatorImp::setContext(const Stock &stock, const KQuery &query) {
|
void IndicatorImp::setContext(const Stock &stock, const KQuery &query) {
|
||||||
KData kdata = getContext();
|
KData kdata = getContext();
|
||||||
if (kdata.getStock() == stock || kdata.getQuery() == query) {
|
if (kdata.getStock() == stock && kdata.getQuery() == query) {
|
||||||
if (m_need_calculate) {
|
if (m_need_calculate) {
|
||||||
calculate();
|
calculate();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user