macd 수정

This commit is contained in:
Macbook
2026-06-16 01:36:42 +09:00
parent 52300379c4
commit aac0641c86
2 changed files with 134 additions and 14 deletions
+4
View File
@@ -306,6 +306,10 @@ export function resolveHLineDrawPrice(
): number {
const def = getIndicatorDef(indicatorType);
const defaults = def?.hlines ?? [];
// MACD·AO 등 registry hline 이 0 하나뿐이면 어떤 저장값이든 0으로 그린다
if (defaults.length === 1 && defaults[0].price === 0) {
return 0;
}
const defPrices = defaults.map(d => d.price);
const prices = allHlines.map(h => h.price);
const lbl = hl.label ?? getHLineLabel(hl.price, prices);