fixed SUM 缺少 discard 设置

This commit is contained in:
fasiondog 2023-09-06 01:32:00 +08:00
parent 293dcbac6f
commit b88c45737e

View File

@ -41,6 +41,7 @@ void ISum::_calculate(const Indicator& ind) {
return;
}
m_discard = ind.discard();
price_t sum = 0.0;
for (size_t i = m_discard; i < m_discard + n; i++) {
sum += ind[i];