macd 수정
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user