mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-03 12:27:48 +08:00
fixed SUM 缺少 discard 设置
This commit is contained in:
parent
293dcbac6f
commit
b88c45737e
@ -41,6 +41,7 @@ void ISum::_calculate(const Indicator& ind) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_discard = ind.discard();
|
||||||
price_t sum = 0.0;
|
price_t sum = 0.0;
|
||||||
for (size_t i = m_discard; i < m_discard + n; i++) {
|
for (size_t i = m_discard; i < m_discard + n; i++) {
|
||||||
sum += ind[i];
|
sum += ind[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user