obv 그래프 오류

This commit is contained in:
Macbook
2026-06-09 02:25:59 +09:00
parent 8670e58c78
commit 7c1cc2ee4b
4 changed files with 58 additions and 13 deletions
+7 -1
View File
@@ -472,7 +472,13 @@ function normalizeSignalLineIndicatorPlots(
if (type === 'OBV') {
const nextPlots = merged.map(p => {
const reg = registryPlots.find(r => r.id === p.id);
return reg ? normalizeDualLinePlotDef(p, reg) : p;
if (!reg) return p;
const normalized = normalizeDualLinePlotDef(p, reg);
// OBV 본선 — DB 저장색(투명·신호선과 동일) 무시, registry 기본색 유지
if (p.id === 'plot0') {
return { ...normalized, color: reg.color };
}
return normalized;
});
return {
plots: nextPlots,