mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-02 20:08:26 +08:00
PRICELIST 允许discard后,存在 nan 值
This commit is contained in:
parent
f844ce7e1c
commit
d63cb48ce7
@ -47,11 +47,6 @@ void IPriceList::_calculate(const Indicator& data) {
|
||||
for (size_t i = m_discard; i < total; ++i) {
|
||||
dst[i] = x[i];
|
||||
}
|
||||
|
||||
for (size_t i = m_discard; i < total && std::isnan(get(i)); ++i) {
|
||||
m_discard++;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user