From d63cb48ce74b453c58b904d039ca16ed172e1a49 Mon Sep 17 00:00:00 2001 From: fasiondog Date: Sat, 9 Mar 2024 22:39:16 +0800 Subject: [PATCH] =?UTF-8?q?PRICELIST=20=E5=85=81=E8=AE=B8discard=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E5=AD=98=E5=9C=A8=20nan=20=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hikyuu_cpp/hikyuu/indicator/imp/IPriceList.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hikyuu_cpp/hikyuu/indicator/imp/IPriceList.cpp b/hikyuu_cpp/hikyuu/indicator/imp/IPriceList.cpp index 2ffa8434..49fd3f6a 100644 --- a/hikyuu_cpp/hikyuu/indicator/imp/IPriceList.cpp +++ b/hikyuu_cpp/hikyuu/indicator/imp/IPriceList.cpp @@ -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; }