obv 문제
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user