직접입력 평가로직 오류

This commit is contained in:
Macbook
2026-06-17 22:10:43 +09:00
parent 3c269db6b7
commit 40cae91d8d
6 changed files with 253 additions and 10 deletions
+9
View File
@@ -21,6 +21,7 @@ import {
import {
isThresholdFieldOrSymbol,
isThresholdSymbol,
inferThresholdRoleForValue,
resolveInheritedThresholdField,
resolveThresholdFromDef,
THRESHOLD_HL_MID,
@@ -282,6 +283,14 @@ export function setConditionThreshold(
? getChartReferenceThreshold(cond, side, inheritedField, def)
: null;
const matchedRole = def
? inferThresholdRoleForValue(value, cond.indicatorType, def.hlThresh)
: null;
if (matchedRole != null) {
const { targetValue: _t, ...rest } = cond;
return { ...rest, [fieldKey]: matchedRole, thresholdOverride: false };
}
if (chartRef != null && Math.abs(chartRef - value) < 0.0001) {
const role = isThresholdSymbol(inheritedField)
? inheritedField