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