obv 문제

This commit is contained in:
Macbook
2026-06-09 01:32:27 +09:00
parent 969b2fa6ad
commit 8670e58c78
4 changed files with 115 additions and 4 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ export function calcOBVWithMA(
obv.push(0);
continue;
}
const vol = bars[i].volume;
const vol = Number(bars[i].volume) || 0;
if (bars[i].close > bars[i - 1].close) acc += vol;
else if (bars[i].close < bars[i - 1].close) acc -= vol;
obv.push(acc);